Why the account field is right aligned? We expected that this field will remain in the same place as on the first screenshot, but will no longer expand.
If you set xexpand="0" for all fields except the name field, then the form is as follows:
How do you define that?
The position and the size of the widgets are dynamic and depend on a complex balancing of weight and expand of each widget.
So you should not design screen with a predefined position in mind but by declaring how they should respond to dynamic resize.
If there are four columns in the form, then each field should occupy approximately half the window (see the first screenshot). And we expected that the second field will be aligned to the left edge of the second half of the window, if it has xexpand="0".
How do you define “widget weight”?
What weight does the widget have when xexpand="1"?
How much the weight of the widget decreases when xexpand="0"?
Unfortunately, we do not understand the logic of the dynamic resizing.
Why the account widget on screenshot 2 is aligned to the right?
(We set xexpand="0" only for the account field.)
Why the account widget on screenshot 3 is not aligned to the right?
(We set xexpand="0" for all fields except the name field.)
Why the account widget on screenshot 4 is in the same place as on screenshot 1?
(We set xexpand="0" only for the account field, but we added a second widget to the first row.)
I can not provide a definition. You have to look at the code because as I said it is complex. This algorithm in sao reproduces as much as possible the behavior of GTK.
It is not possible to say because it depends on the other widgets and the complete view.
Because it has a lower weight than the amount widget. So amount widget push it to the right (but as amount as a fixed size thanks to the digits, it does not expand).
Because now all the widgets has again the same weight (so it is evenly spread) but they do not expand to fill the remaining space.
Because the code line define the size of the columns which is to evenly spread the space. And the other widgets with lower weight just follow.