flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-13036) NestLevel never gets set for a control added to a container whilst the container is not parented if the scrollbars are on
Date Sat, 21 Jun 2014 06:19:24 GMT

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

Alex Harui resolved FLEX-13036.

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.12.2


> NestLevel never gets set for a control added to a container whilst the container is not
parented if the scrollbars are on
> -------------------------------------------------------------------------------------------------------------------------
>                 Key: FLEX-13036
>                 URL: https://issues.apache.org/jira/browse/FLEX-13036
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Layout - General
>    Affects Versions: Adobe Flex SDK Previous, Apache Flex 4.12.1
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Internet Explorer 7.x
> Language Found: English
>            Reporter: Adobe JIRA
>             Fix For: Apache Flex 4.12.2
>         Attachments: _ContainerNestLevel.fxp
> Steps to reproduce:
> 1.You have a container(outer) that contains another container
> (inner) which itself contains a control that is large enough to force 
> the scrollbars on in container inner i.e.
> <mx:VBox id="outer">
>     <mx:VBox height="300" id="inner">
>          <mx:DataGrid height="400" width="200"/>
>      </mx:VBox> 
> </mx:VBox>
> 2.Then you run the following code (you can run it from applicationComplete)
> inner.parent.removeChild(inner);
> var lbl:Label = new Label();
> lbl.text="HELLO WORLD"
> inner.addChild(lbl);
> outer.addChild(inner);
> 3.
>  Actual Results:The Label never appears, however change the height of inner (say just

> remove the height attribute) so the scrollbars dont come on, run 
> again and Label appears.
>  It appears to me the problem is connected with setting the nestLevel 
> on child controls. 
> When you add the inner container back in it will try to set the 
> nestLevel on all its children which is what we want for the Label 
> becuase as it is newly created its nestLevel is 0 and it wont appear. 
> However it uses "rawChildren" to iterate over the child objects and 
> if the scrollbars are on the Label is not a raw child of the 
> container, the contentPane is but it is a sprite so it is ignored by 
> the container so Label never gets its nestLevel set.
> The reason why the grid stays visible is because its nestLevel never 
> got set to 0 when the container was removed because again the 
> container ignored it.
> Seems a prb in both FB2 and FB3.
>  Expected Results:nestLevel should be set and child controls should be visible
>  Workaround (if any):Manually set the nestLevel of all controls after the container becomes

This message was sent by Atlassian JIRA

View raw message