[0.18.x] GUI flow auto-size have unpredictable beheviour
Posted: Sun Apr 05, 2020 7:35 am
Hi, I have test an interface "setup" without understanding why this happen and without chance to get the wanted behaviour.
This is the situations:
They are two, labels multi-line each one inside a flow, two different flow (because they can have some multi elements an different align in line), they live inside a vertical scroll pane with a vertical spacing.
Let's see why this isn't a right behaviour. This is the first flow and label:
Flow:
Label:
How you can see the flow don't have the full label inside of it (and this is weird too but let's suppose that is a normal behaviour)
Now let's compare the first flow and second flow:
They have the same style, and same width, containing two label with the same number of lines (that depends from the screen resolution and scale but they have two string with similar length), but in the two flows have a different behaviour!
I have attach the mod configured to reproduce this behaviour, is different from the mod that is actually uploaded on the mod portal (but they have the same version number). To see that GUI, must have Krastorio 2 v.0.9.9 installed, open the wiki with the left top button on the Krastorio 2 thread, go in the topics and open the new metal/rare metal topic.
This is the situations:
They are two, labels multi-line each one inside a flow, two different flow (because they can have some multi elements an different align in line), they live inside a vertical scroll pane with a vertical spacing.
Let's see why this isn't a right behaviour. This is the first flow and label:
Flow:
Label:
How you can see the flow don't have the full label inside of it (and this is weird too but let's suppose that is a normal behaviour)
Now let's compare the first flow and second flow:
They have the same style, and same width, containing two label with the same number of lines (that depends from the screen resolution and scale but they have two string with similar length), but in the two flows have a different behaviour!
I have attach the mod configured to reproduce this behaviour, is different from the mod that is actually uploaded on the mod portal (but they have the same version number). To see that GUI, must have Krastorio 2 v.0.9.9 installed, open the wiki with the left top button on the Krastorio 2 thread, go in the topics and open the new metal/rare metal topic.