You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (Resolved) (JIRA)" <de...@myfaces.apache.org> on 2012/01/27 21:22:10 UTC

[jira] [Resolved] (TOBAGO-950) Layout inside a sheet cell: Components still occupies some space, when rendered is set to "false"

     [ https://issues.apache.org/jira/browse/TOBAGO-950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Weber resolved TOBAGO-950.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.39

Inside sheet is no height layout calculated, so also the check for rendered attribute of all cells was skipped.

                
> Layout inside a sheet cell: Components still occupies some space, when rendered is set to "false"
> -------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-950
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-950
>             Project: MyFaces Tobago
>          Issue Type: Bug
>    Affects Versions: 1.0.31, 1.0.38
>         Environment: Firefox 3.6.12, Ubuntu 10.04 64bit
> Firefox 9.0.1, Ubuntu 11.10 64bit
>            Reporter: Dom W.
>            Assignee: Volker Weber
>            Priority: Minor
>             Fix For: 1.0.39
>
>         Attachments: tc-link-rendered.png
>
>
> Even though the rendered attribute is set to "false", the tc:link is not fully hidden, i.e. it still uses up some space (a few pixels) . This creates additional empty space, which gets more and more apparent, the more hidden links you have.
> Example code:
> <tc:panel>
> 	<f:facet name="layout">
> 		<tc:gridLayout rows="fixed;fixed;fixed;fixed;fixed;fixed;fixed;*"/>
> 	</f:facet>
> 	<tc:label value="tc:link rendered"/>
> 	<tc:link label="Test 1" rendered="false" />
> 	<tc:link label="Test 2" rendered="false" />
> 	<tc:link label="Test 3" rendered="false" />
> 	<tc:link label="Test 4" rendered="true" />
> 	<tc:link label="Test 5" rendered="false" />
> 	<tc:link label="Test 6" rendered="false" />
> 	<tc:link label="Test 7" rendered="true" />
> 	<tc:link label="Test 8" rendered="true" />
> </tc:panel>	
> Expected result:
> There should be as much space between the tc:label and the first visible tc:link, and also between tc:link 4 and 7, as there is between tc:link 7 and 8.
> Actual result: 
> There is a big gap between the tc:label and the first visible tc:link, and also between tc:link 4 and 7.
> Please also see the attached image.
> Greetings, dom

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira