Page 1 of 1

[0.18.x] GUI flow auto-size have unpredictable beheviour

Posted: Sun Apr 05, 2020 7:35 am
by Linver
Hi, I have test an interface "setup" without understanding why this happen and without chance to get the wanted behaviour.

This is the situations:
Image

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:
Image

Label:
Image

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:

Image

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.

Re: [0.18.x] GUI flow auto-size have unpredictable beheviour

Posted: Sun Apr 05, 2020 10:32 am
by Klonan
Welcome to the GUI

We aren't going to fix things like this unless we encounter the problems in the base game GUI,
The GUI lib/system we use is just too fragile

Re: [0.18.x] GUI flow auto-size have unpredictable beheviour

Posted: Sun Apr 05, 2020 12:43 pm
by Linver
If the content size of gui elements can be readable I can fix this manually in my interface.
viewtopic.php?f=28&t=83286

Re: [0.18.x] GUI flow auto-size have unpredictable beheviour

Posted: Tue Aug 18, 2020 5:23 pm
by ptx0
Klonan wrote:
Sun Apr 05, 2020 10:32 am
Welcome to the GUI

We aren't going to fix things like this unless we encounter the problems in the base game GUI,
The GUI lib/system we use is just too fragile
ouch, that's not something i ever expected to hear from a Wube developer.

i mean, you guys replaced Serpent, because it was fragile crap.