Element both draggable and resizable gets unexpected position:absolute on resize

Steps to reproduce

  1. Drag element 1
  2. Resize element 2
  3. Drag element 3
  4. Drag element 4
  5. Resize element 5
  6. Note that all elements are still float: left with position: relative
  7. Resize element 3

Expected behavior: elements to the right of element 3 stay to the right

Actual behavior: elements to the right of element 3 shift left because element 3 got position: absolute

Test

1 - only DRAGGABLE
2 - only RESIZABLE
3 - DRAGGABLE and RESIZABLE
4 - only DRAGGABLE
5 - only RESIZABLE
6 - DRAGGABLE and RESIZABLE