Is there some way to align a text label with a control?

The example below shows all the things I tried, the only one that works is
explicitly setting the "y" on the label.

Hardcoding numbers for alignment just seems wrong.

Is there something I'm missing?




<canvas width="600" height="400" layout="axis:x">

  <class name="label" extends="text" text="ABCDEFG" bgcolor="yellow"/>
  <class name="combo" extends="combobox" editable="false"
defaulttext="ABCDEFG" bgcolor="red"/>

  <view y="10" layout="axis:y;spacing:10">

        <view x="10" layout="axis:x">
        <label/>
        <combo/>
        </view>

        <view x="10" layout="axis:x">
        <label height="22"/>
        <combo/>
        </view>

        <view x="10" layout="axis:x">
        <label valign="middle"/>
        <combo/>
        </view>

        <view x="10" layout="axis:x">
        <label valign="bottom"/>
        <combo/>
        </view>

        <view x="10" layout="axis:x">
        <label y="3" />
            <combo/>
        </view>

        </view>

</canvas>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to