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
The following example results in draggable object "jumping" 5px to the right and down when being dragged, due to the borders applied to the positioned parent. This only happens when the parent and draggable are both positioned. The draggable does not necessarily have to be a direct child of the positioned parent for the problem to be triggered.
Removing positioning from either the parent or the draggable element resolves the problem. But to support the scenario above, Fit.DragDrop.Draggable should substract borders.
Furthermore, while debugging, I accidentially produced a scenario where the positioned parent did not have top/left/right/bottom set, only position:absolute or position:fixed. This caused positioning of the draggable element to be affected not only by the borders on the parent element, but also the margin applied to , as the following example demonstrates.
The code above causes the draggable element to jump 13px (margin 8px + borders 5px) to the right and down when dragging it.
This problem is hardly worth fixing sicen the usecase is unlikely, so I mainly mention it for the purpose of documenting it.
The text was updated successfully, but these errors were encountered:
The following example results in draggable object "jumping" 5px to the right and down when being dragged, due to the borders applied to the positioned parent. This only happens when the parent and draggable are both positioned. The draggable does not necessarily have to be a direct child of the positioned parent for the problem to be triggered.
Removing positioning from either the parent or the draggable element resolves the problem. But to support the scenario above, Fit.DragDrop.Draggable should substract borders.
Furthermore, while debugging, I accidentially produced a scenario where the positioned parent did not have top/left/right/bottom set, only position:absolute or position:fixed. This caused positioning of the draggable element to be affected not only by the borders on the parent element, but also the margin applied to , as the following example demonstrates.
The code above causes the draggable element to jump 13px (margin 8px + borders 5px) to the right and down when dragging it.
This problem is hardly worth fixing sicen the usecase is unlikely, so I mainly mention it for the purpose of documenting it.
The text was updated successfully, but these errors were encountered: