jQuery UI .widgets resetting scroll positions of elements contained within
- by Derek Adair
I am making heavy use of jQuery UI with my latest project. Unfortunately I've hit a major wall due to some really whacky behavior exhibited by the jQuery UI widgets when they contain elements with scrollbars for overflow.
Check out this demo
Scroll down in one of the .scroll-container elements
Click an accordion header
Click on old header - note the element was auto-scrolled to the top.
Is there anyway to prevent this from happening? It's screwing with a major plugin of mine that utilizes jQuery scrolling. I'm flat-out lost as to what to do here!
Perhaps this is a bug worth mentioning in the jQuery UI dev forums...
EDIT
I am using Chrome - 8.0.552.231
and OSX 10.6.5