gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Application window randomly resizes

Open charislam opened this issue 10 months ago • 6 comments

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)


charislam avatar Feb 03 '25 20:02 charislam

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

Byron avatar Feb 04 '25 08:02 Byron

Thanks for the quick response @Byron! Tried deleting .window-state and unfortunately it did not help.

charislam avatar Feb 05 '25 00:02 charislam

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.

Byron avatar Feb 05 '25 12:02 Byron

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.

charislam avatar Feb 05 '25 16:02 charislam

Perfect, thanks for sharing! This might mean that low-DPI screens somehow trigger this resizing issue.

Byron avatar Feb 05 '25 19:02 Byron

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

bengesoff avatar May 09 '25 11:05 bengesoff