Opened 12 years ago
Last modified 10 years ago
#7501 open bug
Sortable: Wrong placeholder placement with float:left
Reported by: | pimvdb | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.8.14 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have a ul with sortable enabled. The li elements are styled with float:left. However, when dragging an item from the second row to the one above (in case a li wraps to the next line), the placeholder is occasionally placed wrongly. Other times is will be placed faster, resulting in a flicker.
This is a jsFiddle I set up: http://jsfiddle.net/3vzCn/3/
1) Resize your window so that Try to drag the last li (foo4) is placed on a new line.
2) Drag foo4 to foo2.
3) Sometimes at this point the placeholder is not at foo2 but at foo3. When one lets the mouse stay there, the placeholder will automatically be placed at foo2 after a second or so.
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
comment:3 Changed 10 years ago by
Status: | new → open |
---|
comment:4 Changed 10 years ago by
Summary: | Wrong sortable placeholder placement with float:left → Sortable: Wrong placeholder placement with float:left |
---|
Updated test case against master: http://jsfiddle.net/nuNEs/.
Just in case it isn't clear, I recorded what I mean: http://www.youtube.com/watch?v=SadtiznXyHc