-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Resizing Window Changes Widget Size #1319
Comments
Also interesting, in my real app if I intentionally fail login the widgets inside the center frame start shrinking within their parent. This behavior no longer occurs if I resize the window before testing failed attempts. If it would be helpful I can try and put together a minimal repro of that specific behavior. |
Thank you for reporting this. I believe that the cause of this is incorrect updating when moving a window between monitors, which is an issue that we know about and plan to fix soon. It doesn't look like we have another issue with this precise situation, so we can leave this one open (#603, #940, #947, and #997 are related). It should be doable to fix all of these multi-monitor issues soon. |
In case it is helpful, I am running a multi monitor setup, but in the recording above, and in my testing, the window is being launched and resized solely on my primary monitor. It's also an ultrawide screen if that has any bearing. |
Thank you for that information. That is strange. Every time you run the app the widgets have a different size initially until you resize? If possible, when the widgets are still the initial size, can you open the inspector, then click If it is easier to do this or the process above changes the size of the widgets too soon, you could also just add this line of code to your button click event handler, and then send the output from clicking on the button before and after resizing: fmt.Printf("%#v\n", core.TheApp.Screen(0)) Either option will work. Thank you! |
Thank you for providing that information. We don't track orientation on desktop platforms (it is only really relevant on mobile), so that isn't the issue. It is possible that it is getting confused with the ultrawide monitor. If possible, it would be helpful if you could temporarily switch your primary monitor to the other one and see if it fixes the issue. If you want to try turning the other monitor off temporarily so that it is only a single-monitor setup, that could also help narrow down the issue. Testing it on your laptop would also be great. If any of those steps are too inconvenient, that is fine. Thank you! We have seen a similar infrequent cursor bug with text editors before, and we should be able to fix it soon. |
Sure thing, here's the results of my testing. Side note: my secondary monitor is also an ultrawide, it's just smaller. Turning off secondary monitor: Setting secondary monitor as primary: Laptop with Pop auto tiling enabled: Laptop with Pop auto tiling disabled: Here's where things get a little weird. Normally my secondary monitor is on the left of my Primary. I switched it to be on the right on a hunch. Widgets do not re-size when window does. My secondary monitor is a smaller size than the primary, and the coordinates displayed when setting up monitors in the display configuration window seem to indicate that something under the hood considers 0,0 to be in the top left corner. Perhaps it's getting sizing information from the secondary screen on startup and that gets updated to reflect the current screen on resize? |
Thank you for all of the helpful information. We now know enough to try to fix this bug soon (likely next Sunday). |
Describe the bug
On Linux when resizing the window the size of all widgets gets changed.
How to reproduce
Launch the program and resize with drag handles
CogentResizeBug.mp4
Example code
Relevant output
Platform
Linux
The text was updated successfully, but these errors were encountered: