Skip to content

1 8 stable : Ticket #7084 - Draggable with parent containment and margin#144

Closed
ghusse wants to merge 3 commits into
jquery:1-8-stablefrom
ghusse:1-8-stable
Closed

1 8 stable : Ticket #7084 - Draggable with parent containment and margin#144
ghusse wants to merge 3 commits into
jquery:1-8-stablefrom
ghusse:1-8-stable

Conversation

@ghusse
Copy link
Copy Markdown
Contributor

@ghusse ghusse commented Mar 8, 2011

With 2 div elements, the parent has a fixed width (600px), the child element with a smaller width value. Both parent and child have the same height.

The child element has a left and right margin of about 5px, and is made draggable with the following options:

 {
  axis:"x",
  containment: "parent"
 }

When I dragg the child element on left or right, at the very end, child's magin is ignored on dragging. But once the element is dropped, it is moved according to the margin.

This correction fixes this particular issue about margins.

I'm not sure if I also have to use right and bottom margins just a few lines above.

ghusse added 3 commits March 8, 2011 12:15
…of the draggable element. Fixed #7084 - Draggable with parent containment and margin
…of the draggable element. Fixed #7084 - Draggable with parent containment and margin
…of the draggable element. Fixed #7084 - Draggable with parent containment and margin
@scottgonzalez
Copy link
Copy Markdown
Member

Thanks, landed in 3a0ec39.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants