[ 
https://issues.apache.org/jira/browse/FLEX-33998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13849365#comment-13849365
 ] 

Alex Harui commented on FLEX-33998:
-----------------------------------

OK, but how do you resolve conflicts with setting that and the properties 
individually?

{code}
<s:Button id="clearButton" visibleAndIncludeInLayout="{model.canClear}" 
visible="false" /> 
{code}

Also, if you do add this, please add a comment that overuse of these two 
properties is the #1 performance killer.

> visibleAndIncludeInLayout combined property would be helpful
> ------------------------------------------------------------
>
>                 Key: FLEX-33998
>                 URL: https://issues.apache.org/jira/browse/FLEX-33998
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: MXML Components
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Maurice Amsellem
>            Priority: Minor
>
> To show/hide a component inside a Group in MXML, you need to set both visible 
> and includeInLayout properties, through bindings.
> It would be convenient (and probably faster) to have a combined 
> visibleAndIncludeInLayout to set both properties at once.
> {code}
> <s:HGroup>
>    <s:Button id="clearButton" visible="{model.canClear}" 
> includeInLayout="{model.canClear}"/>
> </s:HGroup>
> {code}
> by:
> {code}
> <s:HGroup>
>    <s:Button id="clearButton" visibleAndIncludeInLayout="{model.canClear}" />
> </s:HGroup>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to