-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
Making a window with certain widgets smaller doesn't work on Ubuntu 18.04 and 20.04 #1205
Comments
Hi, @rknuus, Thanks for your report. This is not a bug, this behavior is intended, we decided to determine a minimum height and width (= @freakboy3742, are there any other reasons, could you please mention them? |
Perhaps my problem description was not accurate, my apologies. I understand that certain widgets have some minimal space requirements. My issue is, that starting from the default size I can make the window bigger, but then I can never make it smaller again, even though the window is now bigger than it was initially, i.e. making it a bit smaller should not violate the minimal space requirements. |
Thanks for the report. I think I've seen this in the past, but wasn't able to narrow down a specific reproduction case. IIRC it's only an issue on Ubuntu; the underlying problem is that once the geometry is laid out for a window, that is enforcing a minimum size on the window; and the next time it tries to re-evaluate the layout geometry, that minimum size is being enforced on the new layout. This way, a window can continue to get bigger, but can never shrink. If the issue exists on webview and multiline text, that suggests the issue is the way those widgets are re-hinting their size. |
Thanks @rknuus and @freakboy3742 for your clarification, I got the problem. I submitted the #1224 PR for solve this issue with some code cleaning for |
This bug needs some work my #1224 PR will not solve it perfectly. |
Description
When resizing a window of an application containing a
WebView
or aMultilineTextInput
widget, making it bigger works, but making it smaller doesn't work. Neither horizontally nor vertically. Note that only a few widgets seem to prevent shrinking, e.g. the window of the hello world tutorial application works fine.To Reproduce
Expected behavior
The window size changes in both directions.
Environment:
The text was updated successfully, but these errors were encountered: