[ http://issues.apache.org/jira/browse/TOBAGO-163?page=all ]
Bernd Bohmann resolved TOBAGO-163.
----------------------------------
Resolution: Fixed
> Calculation of component-height doesn't work correctly if margin is set in
> gridLayout
> -------------------------------------------------------------------------------------
>
> Key: TOBAGO-163
> URL: http://issues.apache.org/jira/browse/TOBAGO-163
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.8
> Environment: WinXP
> Tomcat 5.5.20
> IE 6
> Reporter: Tobias Glensk
> Assigned To: Bernd Bohmann
> Priority: Minor
> Fix For: 1.0.9
>
>
> I have a box component inside a panel with three nested components. The rows
> attribute of the box component is set to "fixed". The heigt of the box
> component isn't calculated correctly if all nested components have the heigth
> attribute rows="fixed", for example:
> <tc:panel>
> <f:facet name="layout">
> <tc:gridLayout margin="10px" rows="1*;fixed;1*" />
> </f:facet>
> ..
> <tc:box label="the outer box">
> <f:facet name="layout">
> <tc:gridLayout margin="10px"
> rows="fixed;fixed;fixed" />
> </f:facet>
>
> <tc:messages />
>
> <tx:in label="SerachCriteria" value="" />
> <tc:panel>
> <f:facet name="layout">
> <tc:gridLayout margin="10px"
> columns="5*;1*" />
> </f:facet>
> <tc:cell />
> <tc:button action=""
> label="Search" defaultCommand="true" />
> </tc:panel>
> </tc:box>
> ..
> </tc:panel>
> These are the messages which Tobago generates:
> org.apache.myfaces.tobago.util.LayoutInfo:101 - There are columns left but no
> more space! cellsLeft=1, tokens="fixed;fixed;fixed"
> org.apache.myfaces.tobago.util.LayoutInfo:103 - calculated spaces = "1;20;-1"
> The same happens if the 3rd component in the box has "1*" as row-height.
> org.apache.myfaces.tobago.util.LayoutInfo:101 - There are columns left but no
> more space! cellsLeft=1, tokens="fixed;fixed;1*"
> org.apache.myfaces.tobago.util.LayoutInfo:103 - calculated spaces = "1;20;-1"
> The workaround ist to set the row-height of the third component explicit,
> e.g. rows="fixed;fixed;20px". The type of the 3rd component is not relevant
> (I used tc:button instead of tc:panel to test it).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira