You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
Ext.net.ProxyDDCreator: problem dragging elements if not CSS position: relative #1240
In the example Drag Drop - Basic Example 1, unless the CSS class dd-item has position: relative setting, dropping the item 1.2 or 1.3 the first time they are dragged drops the item shifted by their positions in the yellow div.
This happens because Ext.util.Positionable receives the drop offset and sets it to a relative position from the element's original position. But if that element does not contain a left + top CSS position and it is not relative-positioned already, the method takes again the into account el.dom.offsetLeft (and -Top) in a isNaN test, and then adds that offset to the relative position movement.
This is the code snippet in ext-all-debug.js (from Ext.util.Positionable.translateXY() that defines the miscalculation:
Activity