View Full Version : autoscroll on panel databinded with a grid

4 Oct 2012, 5:08 PM
I'm implementing something a lot like the example here: http://docs.sencha.com/ext-js/4-0/#!/example/grid/binding-with-classes.html (http://docs.sencha.com/ext-js/4-0/#%21/example/grid/binding-with-classes.html)
I want to put an autoscroll on my details panel but the usual autoScroll: 'true' isn't working. I think this is because the data that would require a scrollbar is being loaded after the panel renders. Does that make sense? Does anyone have any idea on how to get around this?

10 Oct 2012, 9:24 AM
With autoScroll the panel's body should show scrollbars when the content overflows even if the content is changed after initial render.

11 Oct 2012, 5:15 PM
figured it out. Just had to add this to the initComponent: function

this.bodyStyle = { background: '#ffffff', overflow: 'auto' };