Skip to content

Droppable: Make the undocumented refreshPositions option standard to recalculate positions. Fixed #5003 - Scroll on Droppable Demo Breaks Demo #296

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

Closed
wants to merge 1 commit into from

Conversation

kborchers
Copy link
Member

Droppable: Make the undocumented refreshPositions option standard to recalculate positions. Fixed #5003 - Scroll on Droppable Demo Breaks Demo

…recalculate positions. Fixed #5003 - Scroll on Droppable Demo Breaks Demo
@gnarf
Copy link
Member

gnarf commented May 23, 2011

This does seem to solve the problem mentioned in the ticket. It doesn't seem like this would be a very bad perf hit either unless you have a whole lot of droppables... This could probably be pulled @scottgonzalez

@scottgonzalez
Copy link
Member

Unfortunately I think this will actually be a big problem for certain users. I'd be more comfortable changing the default behavior to always update, rather than forcing it to always update. We can't make that change in 1.8.x though and we shouldn't change options in 1.9 since the whole API is changing in 2.0. Perhaps we can listen for scroll events and refresh on scroll.

@kborchers
Copy link
Member Author

I have changed the fix to listen for scroll in this pull #342.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants