SUMMARY Kate displays a warning when opening a file which is large and requires it to raise the limit for the line length. This warning, however, makes the window resize to a seemingly random size. This is very inconvenient as it requires the user to manually restore the window to the desired size every time. STEPS TO REPRODUCE 1. Open a file with more than 4,096 characters in one line OBSERVED RESULT Kate shows a warning and changes its window size. EXPECTED RESULT Kate shows a warning and does not change its window size. SOFTWARE/OS VERSIONS Linux: KDE neon KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.114.0 Qt Version: 5.15.12 ADDITIONAL INFORMATION
Can not reproduce that, for me the message in that warning properly wraps. Could you retry with 24.02?
Created attachment 166651 [details] Screenshot (In reply to Christoph Cullmann from comment #1) > Can not reproduce that, for me the message in that warning properly wraps. > > Could you retry with 24.02? The message wraps correctly here as well, but that's not the issue at all. The problem is that Kate's window is resized. It looks like this only happens when the window is smaller than a certain threshold. To give you a reference point, it displays this behaviour when it is as big as a 77x23 Konsole window (on a Full-HD monitor with 100% scaling). If you make Kate's window that big and try to open a file which displays the warning, you will see that Kate's window becomes bigger (specifically, much taller). It looks as if it is trying to preserve the same visible area that shows text while also showing the warning, which of course means the window needs to be taller. See the attached screenshot for visual reference: the window on the left displays the warning, the one on the right is the normal size. The one on the left does not return to the previous size once it becomes bigger.
Ok, can reproduce with master, the 'text area' will stay the same size and enlarge the window for me, too.