Search and Top Navigation
#2539 closed bug (fixed)
Opened March 18, 2008 01:03PM UTC
Closed March 25, 2008 03:10PM UTC
Last modified February 26, 2009 12:01PM UTC
draggable - grid: [x,y] and containment incompatible
| Reported by: | atreyas | Owned by: | paul |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 |
| Component: | ui.core | Version: | 1.2.3 |
| Keywords: | draggable, grid, containment | Cc: | |
| Blocked by: | Blocking: |
Description
If I use the grid[x,y] property for a jQuery draggable object is not able to contain itself to a containment.
e.g.
.draggable ({
helper: 'original',
grid: [50,50],
containment: 'parent'
});
does not contain the element to the parent div tag
On the other hand, the following are working:
.draggable ({
helper: 'original',
//grid: [50,50],
containment: 'parent'
});
contains it to the div element.
Attachments (0)
Change History (4)
Changed March 25, 2008 03:10PM UTC by comment:1
| resolution: | → fixed |
|---|---|
| status: | new → closed |
Changed April 06, 2008 06:09AM UTC by comment:2
Yup, thanks. Works for me. Thanks!
Changed May 24, 2008 03:39AM UTC by comment:3
| milestone: | 1.2.4 |
|---|
Milestone 1.2.4 deleted
Changed February 26, 2009 12:01PM UTC by comment:4
| milestone: | → 1.5 |
|---|
This is fixed in the latest trunk version. However, it's not quite perfect, because at the edges, the grid is not respected. I hope this solves your issue anyway!