alex9311
alex9311

Reputation: 1410

Extjs autoscroll on panel databinded with a grid

I'm implementing something a lot like the example here: http://docs.sencha.com/ext-js/4-0/#!/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?

Thanks!

Upvotes: 0

Views: 908

Answers (2)

V_Dev
V_Dev

Reputation: 93

scroll: true,
viewConfig: {
    style: {
        overflow: 'auto',
        overflowX: 'hidden'
    }
}

Try the above one.

Upvotes: 1

alex9311
alex9311

Reputation: 1410

figured it out. Just had to add this to the initComponent: function

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

Upvotes: 1

Related Questions