2 Replies Latest reply: Dec 10, 2012 4:25 AM by 969837 RSS

    [ADF] stetching/shrinking PanelBox to match its content weird

    969837
      On my page I have two panel boxes.

      Altrough thay has similar content (tree) - for some reason top is much bigger then the bottom one and do not change its height according to its content.
      Second panel is working good, but it stretching to some limit.

      I need both Panels to have minimal height, stretching according to its content.

      How to?


      Screens to discribe:
      [pic1|http://imageshack.us/a/img233/2465/pic1yfc.jpg]
      [pic2|http://imageshack.us/a/img692/8352/pic2bk.jpg]


      Page code is:

      <f:facet name="first">
      <af:panelStretchLayout id="psl2" endWidth="300px">
      <f:facet name="center">
      <af:panelFormLayout id="pfl1">
      *....read-only form here*
      </af:panelFormLayout>
      </f:facet>
      <f:facet name="end">
      <af:panelStretchLayout id="psl3">
      <f:facet name="center">
      <af:panelGroupLayout layout="scroll" id="pgl2">
      <af:panelBox text="PanelBox2" id="pb2">
      <f:facet name="toolbar"/>
      <af:tree ... styleClass="AFStretchWidth">
      *...tree code here*
      </af:tree>
      </af:panelBox>
      <af:panelBox text="PanelBox1" id="pb3">
      <f:facet name="toolbar"/>
      <af:tree ... styleClass="AFStretchWidth">
      *...tree code here*
      </af:tree>
      </af:panelBox>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>