Weird layout gap when IntelliJ IDEA window starts maximized

已回答

Hello, using IntelliJ IDEA 2024.1.4 on Windows 11, but the bug has been present for some time now and is extremely annoying. Whenever IDEA starts up with a maximized window, a weird gap appears between the tool/editor windows and the tool/menu bar (I've uploaded screenshots, see below). If I turn off maximization, the layout becomes normal; if I maximize again, it will stay normal until I close this particular IDEA window. Any help would be greatly appreciated.

Upload id: 2024_07_01_pRv2kSCc9PSVSvm3bzuNAB (files: maximized_again.png and 2 more)

0

Hello Victor,

Sorry for the long silence.

What you describe appears to be the same issue as IJPL-158711, please upvote that ticket so we can properly estimate the impact. Unfortunately, I do not seem to be able to reproduce this either in 2024.1.4 or in 2024.2. I'd be grateful if you describe in a bit more details what exactly leads to it in your case: do you see it after the OS sleep, opening / cloning a project, or the gap appears every normal IDE launch? If the latter, how exactly you start the IDE - from the Toolbox, pinned taskbar icon / Start menu, or command line?  

The issue looks related to IJPL-43557, we expect the fix for it to arrive in 2024.2.1. Please give that version a try as soon as it is released (expected by the end of August). 

0

 

Hello Ekaterina, thank you for the response.  IJPL-158711 seems to exactly describe what I'm experiencing, upvoted. After thinking about it some more, there seems to be a number of related bugs. Here, I just launched the IDE after my computer woke up (the IDE was closed during sleep); when I exited it yesterday, all windows were maximized; as you can see, after starting, some (but not all) of them lost their sizing and became very small:

The two windows that remained maximized kept their layout. If I'll maximize one of the affected (small) windows without resizing, I'll get the gap 100% of the time:

If I resize the window by dragging the corner, there will be no gap, and the window can then be maximized safely (note this is a different IDE window):

I can also fix the first affected window by de-maximizing it and resizing, it'll work 100% of the time. If I exit and start the IDEA after fixing all 5 windows, it'll work as expected, all 5 windows will be maximized and laid out properly. However, after some time (maybe, indeed, sleep-related - not sure, will experiment) the issue will reproduce again. I'll try to check different scenarios over the weekend and will update if I'll find something new.

0

Can confirm, 100% reproducible if going into sleep and coming back out. A perfectly good window now has a bar:

I'll try exiting IDEA before sleeping and will check if it'll also affect windows becoming small

0

Hello Victor, sadly, I still struggle to reproduce the issue. Let's see if it goes away in 2024.2 after fixing duplicate toolbars.

As to the small windows - this appears to be IJPL-43545 that should also be fixed in 2024.2. Please give that version a try as soon as it is released - expected in about a week - and let us know if any of these issues shows up again there.

0

Thank you very much for your efforts! Is there anything I can do (i.e. provide debug logs) to help? Also, my gut feeling is that it is related to a multimonitor setup with different scaling for different monitors in Windows. Hopefully, I'll have some time later today to disconnect my primary monitor and experiment directly on the laptop, to see if the issue is reproducible, and if it is, check if scaling levels affect it.

0

Thank you for your readiness to help investigating it. I've tried reproducing with an external and built-in display having different resolutions and scalings but failed. 

If you still see that gap after updating to 2024.2, you can capture the creation traces of the toolbar (or empty area - if it's not a part of the toolbar) as described in this comment and share the traces in a comment to the IJPL-158711.

0

请先登录再写评论。