For this Showcase: http://www.primefaces.org:8080/prime-sh ... omplex.jsf
How to make left menu tab auto fit height in the accordionPanel? Like this Showcase I can't view all Menu 1.
how to make p:tab auto fit height in p:accordionPanel
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try setting fillSpace option to true.
It can't work. is it like this?
<p:layoutUnit id="left" position="left" width="300" resizable="true" closable="true" collapsible="true" header="Menu" minWidth="200">
<p:accordionPanel activeIndex="0" fillSpace="true">
<p:tab title="Menu 1">
<p:calendar mode="inline" close="false" navigator="none"/>
</p:tab>
<p:tab title="Menu 2">
<h:outputText value="Menu 2 Content" />
</p:tab>
<p:tab title="Menu 3">
<h:outputText value="Menu 3 Content" />
</p:tab>
</p:accordionPanel>
</p:layoutUnit>
<p:layoutUnit id="left" position="left" width="300" resizable="true" closable="true" collapsible="true" header="Menu" minWidth="200">
<p:accordionPanel activeIndex="0" fillSpace="true">
<p:tab title="Menu 1">
<p:calendar mode="inline" close="false" navigator="none"/>
</p:tab>
<p:tab title="Menu 2">
<h:outputText value="Menu 2 Content" />
</p:tab>
<p:tab title="Menu 3">
<h:outputText value="Menu 3 Content" />
</p:tab>
</p:accordionPanel>
</p:layoutUnit>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I see what you mean now, try setting autoHeight to false then.
That is also fixed in showcase but not deployed yet.
Code: Select all
<p:accordionPanel activeIndex="0" autoHeight="false">
-
- Information
-
Who is online
Users browsing this forum: No registered users and 33 guests