View Full Version : Problem in SCrollbar

6 Jan 2011, 8:55 PM
In my application i have more than 5 panels. Whenever iam clicking the any combo box in the panel. The cursor moves to the top of the page. I want to maintain the scrollbar position to place where i am entering the value. How to move the cursor(scrollbar) to particular position. Please any one help in this regards.

i have tried with the document.body.scrollTop=500, but the scrollbar is not moving to 500 position.

7 Jan 2011, 4:13 AM
It's a bit more complex than that.

if (Ext.isIE && Ext.isStrict) {
document.documentElement.scrollTop = 500;
} else {
window.pageYOffset = 500;