You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org> on 2006/10/31 23:07:18 UTC

[jira] Commented: (TOBAGO-163) Calculation of component-height doesn't work correctly

    [ http://issues.apache.org/jira/browse/TOBAGO-163?page=comments#action_12446079 ] 
            
Bernd Bohmann commented on TOBAGO-163:
--------------------------------------

Can you test it with the nightly build, please.

> Calculation of component-height doesn't work correctly
> ------------------------------------------------------
>
>                 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
>            Priority: Minor
>
> 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