jQuery UI .widgets resetting scroll positions of elements contained within
Posted
by
Derek Adair
on Stack Overflow
See other posts from Stack Overflow
or by Derek Adair
Published on 2010-12-21T22:40:20Z
Indexed on
2010/12/21
22:54 UTC
Read the original article
Hit count: 208
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.
- 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
© Stack Overflow or respective owner