SUMMARY In a system with two screens, one placed above the other, and kdevelop or kate are shown maximized in the upper screen and have some panel shown at the bottom. When opening a file and the "raise temporary the limit and reload the file" warning is shown, kdevelop and kate changes its size and the lower part invades the lower screen. It happens in Wayland and X11. STEPS TO REPRODUCE 1. Open Kdevelop maximized in the upper screen showing one panel at the bottom, or kate with a panel at the bottom. 2. Open a file with large lines that raises the inline warning "raise temporary the limit and reload the file". The maximum vertical size changes and invades the lower screen. 3. The only way to restore its original size is not maximize (if I move the window in that state, it invades the lower screen again) and then maximize. OBSERVED RESULT The maximum vertical size is wrongly calculated (Doesn't takes into account the panel size?) and the window is made larger that the upper screen height and invades the lower screen. EXPECTED RESULT It behaves like it is run with only one screen. SOFTWARE/OS VERSIONS Operating System: Kali GNU/Linux 2024.4 KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.7.2 Kernel Version: 6.11.2-amd64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz Memory: 15.2 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620