Draggable: Set containment size after helper size change#2205
Draggable: Set containment size after helper size change#2205velezh wants to merge 1 commit intojquery:mainfrom
Conversation
|
|
Thanks for the PR. We need all contributors to sign the CLA via the provided link. Also, could you explain the issue you want to tackle in detail, ideally with a test case on a platform like JS Bin? All such changes need to be accompanied by unit tests as well. |
|
https://jsbin.com/fahugidoho/edit?html,output |
|
@fnagel What do you think about this? @velezh Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex. |
|
I have no real knowledge on how draggable works and if this change might have some negative impact. A test which shows what issue exactly is targeted here would be helpful. I've approved the test workflow, so we can see how existing tests work with this change. @velezh Are you willing to sign the CLA?
What exactly are you trying to achieve here? The size of the box should change while dragging? Not quite sure where the issue is exactly... Maybe a test would help to understand. |
When helper size was changed in 'start' event, containment still store old values.
Call _setContainment() right after triggering 'start' event.