2019-08-21, 20:12
Is the < bottom > tag broken or am I just using it wrong?
Take the following control:-
This works as you'd expect the image is drawn with it's bottom edge at the exact bottom of the screen, now change the image control to:-
And shouldn't it give the exact same result? Because when I use <bottom> the image just displays at the top of the screen. Any ideas?
Take the following control:-
xml:<control type="group">
<top>0</top>
<left>0</left>
<width>1920</width>
<height>1080</height>
<control type="image">
<top>1000</top>
<left>0</left>
<width>80</width>
<height>80</height>
<texture>mytex.png</texture>
</control>
</control>
This works as you'd expect the image is drawn with it's bottom edge at the exact bottom of the screen, now change the image control to:-
xml:<control type="image">
<bottom>0</bottom>
<left>0</left>
<width>80</width>
<height>80</height>
<texture>mytex.png</texture>
</control>
And shouldn't it give the exact same result? Because when I use <bottom> the image just displays at the top of the screen. Any ideas?