jQuery Sortable List - scroll bar jumps up when sorting

后端 未结 13 1164
慢半拍i
慢半拍i 2020-12-24 12:28

I created a demo: http://pastebin.me/584b9a86d715c9ba85b7bebf0375e237

When the scroll bar is at the bottom and you drag items to sort them, it causes the scroll bar

13条回答
  •  梦谈多话
    2020-12-24 13:21

    Lol, looks like this still isn't patched 4 years later. Here's the ticket.

    Adding onto @Carl M. Gregory's answer, to fully take advantage of a dynamic container instead of setting it on a fixed height, i would edit the jquery.ui.sortable.js core file.

    Simply move back line 228. this._createPlaceHolder... before line 208. this.helper.css("position", "absolute");

    Thanks to Honda on the jquery ticket portal. Am using Sortable.js version 1.10.3.

提交回复
热议问题