2014-04-16, 00:47
There's something I find odd about the <right> positioning.
If I use the following:
All works like expected, both the image and the label show up in the bottom right corner of the screen at the desired coordinates.
However, when I move the coordinates to the group control:
the controls are placed in the bottom left of the screen as if ignoring the <right>
The results should be the same right?
If I use the following:
PHP Code:
<control type="group">
<width>256</width>
<height>99</height>
<control type="image">
<right>25</right>
<bottom>25</bottom>
<width>256</width>
<height>99</height>
<texture>sometexture.png</texture>
</control>
<control type="label">
<right>25</right>
<bottom>25</bottom>
<width>256</width>
<label>some text</label>
</control>
</control>
All works like expected, both the image and the label show up in the bottom right corner of the screen at the desired coordinates.
However, when I move the coordinates to the group control:
PHP Code:
<control type="group">
<right>25</right>
<bottom>25</bottom>
<width>256</width>
<height>99</height>
<control type="image">
<width>256</width>
<height>99</height>
<texture>sometexture.png</texture>
</control>
<control type="label">
<width>256</width>
<label>some text</label>
</control>
</control>
the controls are placed in the bottom left of the screen as if ignoring the <right>
The results should be the same right?