Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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:
Blocked by: Blocking:

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 (3)

comment:1 Changed 5 years ago by eleotlecram

comment:2 Changed 5 years ago by Marcel Toele

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 5 years ago by scottgonzalez

  • Milestone changed from 1.9 to 1.8.11
Note: See TracTickets for help on using tickets.