Skip to main content

Search and Top Navigation

#3328 closed bug (fixed)

Opened September 09, 2008 11:29PM UTC

Closed September 16, 2008 10:38AM UTC

Last modified February 26, 2009 12:53PM UTC

Containment (resizable and draggable) not working when container has overflow:hidden

Reported by: c_t Owned by: paul
Priority: major Milestone: 1.6rc2
Component: ui.draggable Version: 1.6b
Keywords: containment, overflow Cc:
Blocked by: Blocking:
Description

Assume you have a resizable and/or draggable inside a container with the containment-option specified to constrain the resize- and drag-operations to that container. If the container has the css-property overflow:hidden assigned and if it's content is larger than the container itself (i.e. without overflow:hidden the content would overlap) then the restriction does not work.

This is due to the fact, that jquery ui thinks the container is scrollable while it isn't due to the css-property.

I have appended a fix that makes the containment-option work for both resizables and draggables. I would really appreaciate it to see the patch included in 1.6 .

Attachments (1)
Change History (3)

Changed September 16, 2008 10:38AM UTC by paul comment:1

resolution: → fixed
status: newclosed

Looks good, thanks! Fixed in r680.

Changed November 19, 2008 04:35AM UTC by rdworth comment:2

milestone: 1.61.6rc2

Changed February 26, 2009 12:53PM UTC by paul comment:3

component: ui.coreui.draggable