Ticket #7104 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

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:1 Changed 3 years ago by eleotlecram

comment:2 Changed 3 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

comment:3 Changed 3 years ago by scott.gonzalez

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