View Full Version : Maintain scroll position of borderlayout panel on postback

12 Dec 2006, 8:11 AM
My first post so I must say: Jack, yui-ext rocks!

I have a legacy app that I am yui-exting and everything is looking good so far; however, I am at a loss as to how to maintain my scroll position in a div on postback (I hope to "ajaxify" the postback soon but for now ..... ) I am attempting to capture scroll position of the div and always get scrollTop and scrollLeft as 0. Any examples or ideas to get me over this roadblock?



12 Dec 2006, 9:41 AM
This may sound like a dumb question, but are you sure you have the right container for the scrollTop/scrollLeft?

Can you break it down a little further?

12 Dec 2006, 1:36 PM
Google searching solved it :) I changed to overflow:auto; in the div's style also no-DTD