Ticket #7104 (closed bug: fixed)
Droppable: if activeClass changes the geometry of a droppable, then dnd uses the wrong geometry.
| Reported by: | eleotlecram | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.8.11 |
| Component: | ui.droppable | Version: | 1.8.10 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Currently the ui.ddmanager caches the geometry of all accepting and visible droppables. Unfortunately, it evaluates this geometry *prior* to setting the activeClass, and so, if setting the activeClass (as a side effect) changes the geometry, then during drag and drop, the ddmanager calculates all intersections, snapping etc. using the wrong geometry.
To show this in effect, see: http://jsbin.com/ahaze4
Marcel
Change History
comment:2 Changed 2 years ago by Marcel Toele
- Status changed from new to closed
- Resolution set to fixed
Droppable: enabled and accepting droppables are now activated prior to evaluating their geometry. Fixes #7104 Droppable: if activeClass changes the geometry of a droppable, then dnd uses the wrong geometry. (cherry picked from commit 86e6ed2eb18adcc7f9f96dc347848608cc3d3120)
Changeset: c5b0a8660a57676815901b24be84b3a4bb5a625a


Sent a pull request: https://github.com/jquery/jquery-ui/pull/150