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

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"

                <js:VerticalLayout />
            <js:Label text="Hello" />
            <js:Label text="World" />


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.

View raw message