Jquery UI Draggable Absolute Instead of Relative?

前端 未结 4 1913
半阙折子戏
半阙折子戏 2021-02-18 20:18

I have a div containing a few jquery draggables, however if at any point I remove one of these draggables from the page then this can move the rest of them as they are positione

4条回答
  •  梦谈多话
    2021-02-18 21:04

    1. Add position:absolute to your elements.
    2. Attach them to the DOM before calling .draggable.

提交回复
热议问题