Here is the XML of the widget:
Code: Select all
<GUILayout version="4" >
<Window type="DefaultWindow" name="Console_LuaTab" >
<Property name="Area" value="{{0,0},{0,0},{1,0},{1,0}}" />
<Property name="Text" value="Lua Scripting" />
<Property name="MaxSize" value="{{1,0},{1,0}}" />
<Window type="VerticalLayoutContainer" name="LuaTabMainVert" >
<Property name="Area" value="{{0,0},{0,0},{0,1600},{0,1200}}" />
<Window type="HorizontalLayoutContainer" name="HorizontalLayoutContainer" >
<Property name="Area" value="{{0,0},{0,0},{0,1600},{0,600}}" />
<Window type="Vanilla/MultiLineEditbox" name="LuaTextEdit" >
<Property name="Area" value="{{0,0},{0,0},{0.8,0},{0.5,0}}" />
<Property name="Text" >
</Property>
</Window>
<Window type="VerticalLayoutContainer" name="VerticalLayoutContainer" >
<Property name="Area" value="{{0,1280},{0,0},{0,1600},{0,240}}" />
<Window type="Vanilla/Button" name="SubmitButton" >
<Property name="Area" value="{{0,0},{0,0},{0.2,0},{0.2,0}}" />
<Property name="Text" value="Submit" />
<Property name="VerticalAlignment" value="Centre" />
</Window>
</Window>
</Window>
<Window type="Vanilla/MultiLineEditbox" name="LuaOutputTextEdit" >
<Property name="Area" value="{{0,0},{0,600},{1,0},{0.5,600}}" />
<Property name="Text" >
</Property>
<Property name="ReadOnly" value="true" />
<Property name="BlinkCaret" value="true" />
</Window>
</Window>
</Window>
</GUILayout>
Basically, we have a vertical container (A) that contains a horizontal container (B) and an Editbox (D).
In B, there is another Editbox (C) and another vertical container (E).
In E, there is a Button (F) set to centered vertical alignment.
Here is how I expect this to look (basically, Qt behaviour):
And here is how it does look:
The problem seems to be that the vertical container E uses the full window size instead of the size it actually should have (constrained to the height of horizontal container B).
Or, I do not understand how it is supposed to work.
Again, what I was expecting was Qt behaviour, where each layout does its layouting work in relation to its parent (which might be another layout), not to the size of the "root" window itself.
So this might be a bug or a feature