ilikenwf / nestedSortable

A jQuery plugin that extends Sortable UI functionalities to nested lists.
646 stars 221 forks source link

Items jump up if the window is scrolled down #41

Open camohub opened 9 years ago

camohub commented 9 years ago

Hi, I have a little problem with jumping items in Chrome. It appears when the window is little scrolled down. When I try to drag item and move, it jumps up and the whole page moves little down. Here si the screenshot: http://web.php5.sk/fora/nestedSortable.png and the sample of code: http://web.php5.sk/DROM.php

jquery is 1.11.1 jquery_ui 1.11.2 nestedSortable 2

Can you help me please?

tjdraper commented 9 years ago

I’m having this problem too. As described, if the window is down a little grabbing and dragging an item results in a windows scroll position jump and the .ui-sortable-helper item being up way too high in the window.

mistajase79 commented 8 years ago

I'm also having this issue - desperate for a fix

mistajase79 commented 8 years ago

FIXED IT!

I have a parent div wrapping my ordered list element If I put overflow:auto; on this div it stops jumping!

meydjer commented 8 years ago

I was working with a template which has the following CSS:

body {
    overflow-y: scroll;
}

Changing to overflow-y: initial; worked for me.

Maybe it helps someone.

ishigami commented 8 years ago

overflow:auto;

On the container of drag elements, works for me. Tks @mistajase79