-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Draggable: modified snapping algorithm to use edges and corners. Fixed #8165 - Draggable: Snapping doesn't take top/left into account properly #796
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
Conversation
Is this a duplicate of #780? |
The code here is certainly a lot smaller. What's the technical difference? |
In #780 condition checks if at least one of corners or edges is in area which should cause snapping. |
Hi @zmszaman, thanks again for contributing this patch. We recently re-enabled the test suite for draggable. In order for us to land this patch, we'd need a few tests added to the test suite proving this doesn't break existing functionality and also that it fixes the bug as described. Can you add some tests here please? |
I ran tests and it doesn't break existing functionality. Every tests passes. |
@zmszaman, thanks again for contributing the patch! I'm eager to land a fix. Just to recap what we need to land this pull request:
Please let me know when you've completed that! Thanks again. |
@zmszaman, I can write the tests if you can't find the time, but please sign http://jquery.github.com/cla.html so I can land this patch. |
I just sign CLA. I will be grateful if you write the test. |
@zmszaman, can you rebase this code, it's not going to merge cleanly at this point. |
…. Fixes #6830 - Allow Icons to be specified for Dialog buttons.
… overhaul unit test for destroy method.
…ontent, then buttonpane, then close button, then dialog. Fixes #4731 - Dialog: Add option to set which element gains focus on open
…able methods. Disabling dialogs is not supported.
… check. Fixes #8824 - Deprecate array notation for position option.
…naddressable TODOs.
…r instead of appending to body.
… to create the button.
…es not close for first click on chrome.
…8838 - Dialog: Close icon does not work in dialog larger than the window in IE.
…o prevent XSS. Fixes #6016 - Dialog: Title XSS Vulnerability.
…ixed #7960 - Dialog: Modal dialogs do not disable resizables on the page.
…4485: Portlet demo is buggy.
…er from an image. Fixes #5129 - Sortable: Unable to use an image as a placeholder in Firefox.
…nt incorrectly calculates padding and border
…nal functions when proxying, don't rename originals.
… floating. Fixes #8792: Issue with floated items in connected lists.
…. Fixes #9041: the over event fires on every pixel movement
…es #9150 - CSS Framework: Add ui-icon-blank. This essentially reverts 1fe06f0 and the fix for #5659.
… disabled option. Fixes #5973 - Resizable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #5974 - Draggable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #6039 - Droppable : disabled should not have ui-state-disabled
…unt-css and grunt-html, update custom tasks. Drop qunit-junit plugin, not worth the trouble. Update release script to run grunt-prepare after npm-install.
…ds a new version of grunt-compare-size to actuall work
I did rebase on the code |
@zmszaman, please try again. First pull latest upstream master, then rebase your branch against latest master. Looks like you rebased against an old master. |
OK, I'll go ahead and rebase this for you when I land it. |
Thanks for contributing! Patch landed in bd126a9 For future reference, if you'd like to contribute more patches:
Thanks again! |
Fixed #8165 - Draggable: Snapping doesn't take top/left into account properly