myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dom W. (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOBAGO-950) tc:link still occupies some space, when rendered is set to "false"
Date Fri, 26 Nov 2010 15:39:16 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12936033#action_12936033
] 

Dom W. commented on TOBAGO-950:
-------------------------------

Thanks for your reply.

Here is the full view, including your corrections. The result remains the same as initially
reported:

  <f:view>
    <tc:page label="TOBAGO 950" width="500px" height="600px">
      <tc:sheet var="myVar" value="#{myController.myList}"
        state="#{myController.sheetState}">
        <tc:column>
          <tc:panel>
            <f:facet name="layout">
              <tc:gridLayout rows="fixed;fixed;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:cell />
          </tc:panel>
        </tc:column>
      </tc:sheet>
    </tc:page>
  </f:view>

> tc:link 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
>         Environment: Firefox 3.6.12, Ubuntu 10.04 64bit
>            Reporter: Dom W.
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message