[SOLVED]Height problem of layout
Posted: 15 Apr 2013, 09:48
Hi, I have a layout page like following:
The layout is element layout without fixed height, and only have west and center part, on the picture, you'll see that the real height of the whole layout is sum of west children's height and center children's height, not the maximum one of the two which I expected.
![Image](http://farm9.staticflickr.com/8524/8651633070_ec1a8c39fb_b.jpg)
And I can't set a fixed height on layout, because there is a dynamic content in the center part, I can't know the exactly height of it.
So it is a bug ?
Any help will be appreciated.
Code: Select all
<h:body>
<p:layout fullPage="false">
<p:layoutUnit position="west" size="260">
<h:form>
<p:panelGrid columns="1">
<h:commandButton value="Test1"/>
<h:commandButton value="Test2"/>
<h:commandButton value="Test3"/>
<h:commandButton value="Test4"/>
</p:panelGrid>
</h:form>
</p:layoutUnit>
<p:layoutUnit position="center">
<p:panel header="panel1" style="height:400px;">
</p:panel>
</p:layoutUnit>
</p:layout>
</h:body>
![Image](http://farm9.staticflickr.com/8524/8651633070_ec1a8c39fb_b.jpg)
And I can't set a fixed height on layout, because there is a dynamic content in the center part, I can't know the exactly height of it.
So it is a bug ?
Any help will be appreciated.