flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject [FlexJS] content being push out of the way in container
Date Wed, 01 Mar 2017 01:21:31 GMT
Hi,

I have this code:

<js:Container xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:js="library://ns.apache.org/flexjs/basic”>
<js:Container id="cover" percentHeight="100" percentWidth="100" visible="false">
    <js:style>
        <js:SimpleCSSStyles backgroundColor="rgba(255,255,255,0.7)" />
    </js:style>
</js:Container>

<js:Label text=“Hello World" />
</js:Container>

Changing the visibility of the cover container causes the text to jump outside often container.

Oddly adding x=“0” y=“0” to the cover and the label fixes the issue. Should all items
in a Container have x and y set to zero? It’s assume they overlap right? - unlike a HContainer
or VContainer.

Thanks,
Justin 
Mime
View raw message