I have a panel, and on the server, I add a bunch of child panels to it. When clicking on actions inside those child panels, there is a post back, and the panel is scrolled to the top.

I've explored a few ways to be able to maintain my scroll position but am coming up short.

I saw this code that was for 2.x but I can't find the equivalents (if possible) for 1.x.

var panel = App.MyFormPanel,
    scrollTopToRestore = panel.body.getScrollTop(); 

panel.add({ xtype: 'textfield' });
panel.body.setScrollTop(scrollTopToRestore);
In working with the javascript, when I identify the panel, it's body doesn't have those methods. I get "ExtBuilder1_Panel1.body.getScrollTop is not a function(…)"

Any thoughts or ideas?