Skip to main content

Search and Top Navigation

#8564 closed bug (worksforme)

Opened September 11, 2012 01:49PM UTC

Closed November 27, 2012 06:55PM UTC

jQuery 1.8+ breaks sortable list scrolling inside absolute positioned element with bottom: 0

Reported by: ryfry07 Owned by: ryfry07
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:

Using jQuery 1.7.2 I was able to drag sortable elements inside an absolutely positioned element with bottom: 0; But upgrading from jQuery 1.7.2 to 1.8+ causes the following jsfiddle to not work:

The container never scrolls. If you switch back to 1.7.2, it scrolls.

Tested on Chrome, Firefox, Safari and IE.

Attachments (0)
Change History (7)

Changed October 11, 2012 02:56PM UTC by scottgonzalez comment:1


Changed October 29, 2012 05:08AM UTC by mikesherov comment:2

owner: → ryfry07
status: newpending

Thanks for contributing! Why are you specifying both "top" and "bottom" on the container element? I understand this used to "work" in jQuery 1.7.2, but what are you trying to achieve by specifying both? I can investigate this further once I understand the intent of that code. Thanks again!

Changed October 29, 2012 08:12PM UTC by scottgonzalez comment:3

mikesherov: Specifying both top and bottom is an easy way to expand to fill the parent. It's like a reliable height: 100%.

Changed October 29, 2012 08:13PM UTC by mikesherov comment:4

status: pendingopen

That's interesting.

Changed October 29, 2012 08:27PM UTC by ryfry07 comment:5

scott.gonzalez is correct. My intent is to have an area that's scrollable that doesn't cause the whole window to get its own scrollbar. Other interface elements on the page stay put, and you can drag sortable elements inside the absolutely positioned area that scrolls.

Changed November 27, 2012 06:46PM UTC by ryfry07 comment:6

It seems to be fixed with jQuery 1.8.3 and jQuery UI 1.9.2

Changed November 27, 2012 06:55PM UTC by mikesherov comment:7

resolution: → worksforme
status: openclosed