flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject [FlexJS] vertical layout not working with labels
Date Tue, 07 Feb 2017 07:33:34 GMT
Hi,

Can anyone tell me why this displays horizontally rather than vertically? Is this a bug?

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic”>

<js:initialView>
    <js:View>
        <js:Container>
            <js:beads>
                <js:VerticalLayout />
            </js:beads>
            <js:Label text="Hello" />
            <js:Label text="World" />
        </js:Container>
    </js:View>
</js:initialView>

</js:Application>

I can see the labels get turned into spans. Shouldn’t they be divs? Or do I need to use
something else other than js:labels to get vertical alignment?

I can put <js:Spacer />’s after each one to get vertical alignment but that seems
a bit hacky.

Thanks,
Justin
Mime
View raw message