Skip to Main Content

Java Development Tools

Setting region height to stretchContent="auto"

spai-OracleFeb 3 2014

Hi,

I have the below code snippet in my jspx page to auto stretch the content in a region. This works if my region does not render any table.

<cust:showDetailFrame

                      id="sdf1"   

                      stretchContent="auto">       

<af:region value="#{bindings.vivirtplatformgener al1.regionModel}" id="r1"/>   

</cust:showDetailFrame>

But if the region contains a table, the table is not rendered correctly. The last column in the table gets shrinked leaving significant blank space on the right side of the layout. Below is the table definition in the region -

<af:panelStretchLayout id="psl1">

     <f:facet name="center">

        <af:table id="t1" width="100%" columnStretching="column:col1" ...../>

    </f:facet>

</af:panelStretchLayout>

Can anyone help me on this?

Thanks,

Shubha

Post Details
Locked on Mar 3 2014
Added on Feb 3 2014
0 comments
793 views