Opened 14 years ago
Closed 13 years ago
#4502 closed bug (notabug)
Problem dragging to extremes when using draggable on a grid
Reported by: | gplocke | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8 |
Component: | ui.draggable | Version: | 1.7.1 |
Keywords: | grid, dragging | Cc: | |
Blocked by: | Blocking: |
Description
If you have an area that is the parent container with a draggable element inside, and you use a grid, the draggable element can't reach the very top or very bottom of the parent container.
You can see an example of the problem here (the files are also attached) http://jsbin.com/ayawa
Click and drag to select a region in the column. Then drag the resulting div up and down to illustrate the issue.
Attachments (1)
Change History (4)
Changed 14 years ago by
Attachment: | index.html added |
---|
comment:2 Changed 14 years ago by
Milestone: | 1.7.2 → 1.8 |
---|
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
The bug is in your test - in fact, it is just one pixel that destroys your usecase. The grid option will always have the priority over the containment option, meaning if snapping at the very top corner of the containment would destroy the grid, it will not do so. In your example, to move to the top edge, the distance would be 14px - but in order to keep the grid, it needs to move by 15px.
HTML test case illustrating bug.