21

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.

3 Answers 3

29

Basically you would just add the autoScroll property like

autoScroll: true 

Here's a working JSFiddle

Sign up to request clarification or add additional context in comments.

2 Comments

This not work for me. I had just update this question with my panel definition. thanks.
@paulo First: Your width is invalid cause it has to be a number. Second: see this JSFiddle example
10

...or if you always want a vertical scrollbar

overflowY: 'scroll' 

Comments

6

Actually you should have two properties together:

autoScroll: 'true' 

and

height: 300 

They work together, one without the other will not produce the scroll bar.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.