2014-01-25, 14:57
I have some code like this:
I expected the button to inherit its width and height from the parent group, since that's what other controls seem to do. However this doesn't seem to be the case.
Is this a bug?
Code:
<control type="grouplist">
<left>100</left>
<top>570</top>
<width>375</width>
<height>40</height>
<orientation>horizontal</orientation>
<itemgap>0</itemgap>
<control type="group">
<width>28</width>
<height>40</height>
<control type="button">
<description>Timestep 0</description>
<onclick>SetProperty(Weather.SliderPosition, 0)</onclick>
<onclick>RunScript(weather.metoffice, ForecastMap)</onclick>
</control>
<control type="image">
<visible>StringCompare(Window.Property(Weather.SliderPosition), 0)</visible>
<texture>ScrollBarH_bar_focus.png</texture>
</control>
</control>
...more groups...
I expected the button to inherit its width and height from the parent group, since that's what other controls seem to do. However this doesn't seem to be the case.
Is this a bug?