Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: droppable-get-dimension withScroll #966

Merged

Conversation

woohling
Copy link
Contributor

We're forking your amazing repo and need to add some features based on our product logic, and then I found a potential bug, which I spent a lot of time debuging.

The default container supporting horizontal scroll is the window, which would not trigger any bugs currently. But I think it would be stricter to code it this way. Pls take a look and see if I'm doing this correctly.

@woohling
Copy link
Contributor Author

@alexreardon kindly pls take a look at the pull request

@alexreardon
Copy link
Collaborator

alexreardon commented Nov 29, 2018 via email

@@ -117,7 +117,7 @@ export default ({

return {
client: frameClient,
page: withScroll(frameClient),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withScroll will apply the page scroll

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right that your change is a bit stricter in that it does not read the page scroll directly, but just supplies it..

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer the more strict method, it may cause potential bug which I encountered.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like that this approach does not touch the DOM again and just uses the value that has been passed in

@alexreardon alexreardon merged commit 89e38a0 into atlassian:master Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants