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

Alex Harui commented on FLEX-35263:
-----------------------------------

Hmm.  I'm not sure that's right.  I think the "n > 0" test is so that the width 
isn't set until children are added.  Depending on how much code it is to 
support dynamic add/removes, we might need variants of the layout classes for 
PAYG reasons, but I'd say that this layout needs some sort of change detection 
to know that children have been added/removed since the last layout.


> [FlexJS] Layout Does Not Reset ContentView Width After Elements Removed (HTML 
> only)
> -----------------------------------------------------------------------------------
>
>                 Key: FLEX-35263
>                 URL: https://issues.apache.org/jira/browse/FLEX-35263
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Yishay Weiss
>
> In this app:
> https://paste.apache.org/EiP5
> Aftrer clicking 'Remove' you still see scrollbars on mainGuy.
> The problem is fixed if in BaicLayout we replace
>                 if (!hasWidth && n > 0 && !isNaN(maxWidth)) {
> with
>                 if (!hasWidth && !isNaN(maxWidth)) {
> But I'm not sure that doesn't break anything.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to