how to make p:tab auto fit height in p:accordionPanel

UI Components for JSF
Post Reply
heyoulin
Posts: 35
Joined: 29 Mar 2010, 19:49

06 Aug 2010, 17:44

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Aug 2010, 18:13

Try setting fillSpace option to true.

heyoulin
Posts: 35
Joined: 29 Mar 2010, 19:49

08 Aug 2010, 10:12

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>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Aug 2010, 10:53

I see what you mean now, try setting autoHeight to false then.

Code: Select all

<p:accordionPanel activeIndex="0" autoHeight="false">
That is also fixed in showcase but not deployed yet.

heyoulin
Posts: 35
Joined: 29 Mar 2010, 19:49

08 Aug 2010, 11:45

Now it works. Thanks. But now i want tab2 and tab3 move to accordionPanel's bottom when tab1 actived. When tab2 actived tab1 move to top and tab3 move to bottom...

So how to do this?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests