Extjs scrollable panel
Asked Answered
D

3

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.

Durable answered 13/12, 2012 at 8:48 Comment(0)
R
29

Basically you would just add the autoScroll property like

autoScroll: true

Here's a working JSFiddle

Rao answered 13/12, 2012 at 8:52 Comment(2)
This not work for me. I had just update this question with my panel definition. thanks.Durable
@paulo First: Your width is invalid cause it has to be a number. Second: see this JSFiddle exampleRao
S
10

...or if you always want a vertical scrollbar

overflowY: 'scroll'
Salacious answered 13/12, 2012 at 9:39 Comment(0)
P
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.

Prosper answered 13/7, 2016 at 14:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.