-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constraints' minimum sizes are not consistent #19
Comments
If resizing changes the layout it's because the layout as defined by the constraints is not stable; this is usually caused by too few, or contradictory constraints. Let's break down the VFL:
All these constraints are set to be required to solve the layout. This is similar to the line below of You can set a priority; for instance, you may want to lower the priority of the spacing between the trailing attribute of You can also remove the constraint between the trailing attribute of |
I don't understand though why the |
Here's a GJS script that illustrates the bug:
When you run this, the initial size of the window (215x200) is big enough to take the vertical size of the layout and the horizontal size of
w1
into account, but not the horizontal size ofw2
, which is cut off.If you drag the window's lower right resize grip around in circles, you can get into one of two states: either (1) the window will not size smaller vertically than 200 pixels but will size horizontally down to 1 pixel wide, or (2) the window will not size smaller than 215x200 pixels. It's unclear to me how to reproducibly get into each state, but each time you restart the program and drag the resize grip around, you will get into one of the two. (Very rarely, you can even change by just frenetically dragging the resize grip without restarting the program.)
It seems to me that the minimum size should be more like 315x200 (to take
w2
into account) and should be consistent no matter how many times you resize the window.The text was updated successfully, but these errors were encountered: