Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs scrollable panel

Tags:

I have a panel where I insert some HTML from the server:

myPanel.update(response.responseText); 

But if this text is too big, none of the scrollbars appear to navigate the text.

How can I configure a vertical scrollbar in this panel?

This is my panel definition:

{   xtype:'panel',   width: '100%',   height: 300,   id:'mypanel' }, 

Thanks.

like image 267
Beetlejuice Avatar asked Dec 13 '12 08:12

Beetlejuice


2 Answers

Basically you would just add the autoScroll property like

autoScroll: true 

Here's a working JSFiddle

like image 76
sra Avatar answered Sep 29 '22 11:09

sra


...or if you always want a vertical scrollbar

overflowY: 'scroll' 
like image 32
Rob Agar Avatar answered Sep 29 '22 12:09

Rob Agar