Application window randomly resizes
Version
0.14.6
Operating System
macOS
Distribution Method
dmg (Mac OS - Apple Silicon)
Describe the issue
The application window randomly resizes to 400% of its normal size (so that modals which should appear in the center of the scren are instead centered on the bottom right corner). This makes it unusable because you can't click any modal buttons or create a commit/push (the menus at the bottom of each branch are completely off-screen). It resets when the app is closed and restarted, but this happens several times a day so it's quite irritating.
I don't know if there's a particular trigger that makes it do this. I see it only when refocusing the app after working on something else.
How to reproduce (Optional)
No response
Expected behavior (Optional)
No response
Relevant log output (Optional)
Thanks a lot for reporting, and sorry for the hassle.
It's a strange issue we haven't encountered yet. Previously there was a problem with the Window being set to a zero-size so it became invisible, but becoming 4 times larger is new.
Does this get better when removing this file: ~/Library/Application\ Support/com.gitbutler.app.dev/.window-state?
Thank you
CC @estib-vega
Thanks for the quick response @Byron! Tried deleting .window-state and unfortunately it did not help.
Thanks for trying, I didn't exactly have high hopes for it and it's good to know that deleting this file indeed doesn't affect the issue.
Is a second screen involved? The 4x factor is like going from low-DPI to high-DPI.
Oh, good question! I think you're right. I've been getting this problem on my monitor, but I disconnected it this morning and haven't had a problem with just my laptop screen so far.
Perfect, thanks for sharing! This might mean that low-DPI screens somehow trigger this resizing issue.
I'm not sure if it's the same issue, but when I have my Macbook plugged into a 4K monitor with the lid shut and GitButler in full-screen mode, and it awakens from a sleep, then the UI is shrunk in the top-left corner as if the screen is a quarter of the size. If I then take it out of full-screen mode, then the window is about 4 times the size of my screen and I have to drag it over a few times before being able to resize it back to something that fits on the screen.
It does appear to be a scaled resolution with the same scaling factor so that is likely to be related
DELL P3223QE:
Resolution: 5120x2880 (5K/UHD+ - Ultra High Definition Plus)
UI Looks like: 2560 x 1440 @ 60.00Hz
Main Display: Yes
Mirror: Off
Online: Yes
Rotation: Supported