This is a migrated thread and some comments may be shown as answers.

Static sized PanelBar?

2 Answers 182 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 29 Mar 2012, 06:08 PM
Whenever I click on a panelbar heading (even in the demo: http://localhost/test/examples/web/panelbar/index.html) the panelbar resizes itself (shrinks & expands depending on the number of child elements). Is there a way to make the panelbar a static height?

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 Apr 2012, 08:18 AM
Hello Kyle,

I suggest to set the height of the <li> item's content through a CSS rule. For example:
.k-panelbar .k-content>.panelBar-content {
    height: 200px;
    overflow: auto;
}

Where .panelBar-content is the class of the content wrapper. You can see this approach in action in this jsFiddle example.
I hope this information helps.

Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jane
Top achievements
Rank 1
answered on 07 Apr 2012, 10:17 AM
Was looking for something similar and yes the above did help thank you.

The example is helpful too.

I do like that jsfiddle stuff



______________
GuildWars2 Ranger
Tags
PanelBar
Asked by
Kyle
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Jane
Top achievements
Rank 1
Share this question
or