Bug 427728

Summary: Minimum window height is too tall and does not scale with scale factor
Product: [Applications] kate Reporter: Leonardo <leoneivaw>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: christoph, justin.zobel, nate, waqar.17a
Priority: NOR    
Version First Reported In: 20.08.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: resizing kate
Screenshot
kate
Kate x KWrite

Description Leonardo 2020-10-14 23:04:19 UTC
Created attachment 132369 [details]
resizing kate

SUMMARY
Cant resize Kate window less than: W169 x H301
it is useful having a notepad window as a "single line height" or as a "single col width".
Just see the attached image. Lost too much space.

STEPS TO REPRODUCE
1. Just try to resize kate less than W169 x H301

OBSERVED RESULT
There is a limit to resize. Kate window still big

EXPECTED RESULT
Resize less than width:169 or height:301

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.10
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Kernel Version: 5.8.0-23-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

Thanks!
Comment 1 Nate Graham 2020-10-16 13:19:35 UTC
Are you sure Kate is the right tool for this job? If you want a tiny note-like window to use as a notebad, how about a Sticky Note widget? You can put it on your panel and activate it with a keyboard shortcut.
Comment 2 Leonardo 2020-10-17 02:32:16 UTC
i mean, i understand that the notepad concept is to have a fast, simple and flexible tool. i am the kind of user that uses notepad all the day. to take fast notes, annotate big things, to fast count things and of course codding.
i am sure i'm not the only user that miss that "resize versatility". just fast drag to any corner and take notes from a bigger window.
thanks
Comment 3 Nate Graham 2020-10-17 03:58:09 UTC
I note that on my 4k screen at 200%, I can make my Kate window exactly half as tall as you can in your screenshot. And the window is small, but still usable.

Seems like the minimum window height in Kate is:

1. too tall
2. not scaling itself according to the scale factor
Comment 4 Justin Zobel 2020-11-13 03:46:32 UTC
Created attachment 133283 [details]
Screenshot

I got mine down to 127x184 (no menubar, no tab bar, no status bar and no sidebar). The most minimal text editor you'll ever see.
Comment 5 Waqar Ahmed 2021-01-13 09:50:04 UTC
On my 1366*768 laptop screen i was able to reduce the height to 0 rows in the view and about 15 columns in width. For higher resoloution screens this is a bit different I guess.
Comment 6 Christoph Cullmann 2021-04-04 19:05:35 UTC
Created attachment 137328 [details]
kate
Comment 7 Christoph Cullmann 2021-04-04 19:06:19 UTC
See the attached screenshot, that is on a 150% scaled HiDPI screen.

I don't see how we can reduce this even more.

(used Plasma Desktop with standard KWin)
Comment 8 Christoph Cullmann 2021-04-04 19:07:28 UTC
@nate: can you really not resize it to that size? Have you some non-default loaded plugins enabled? I have Konsole/LSP/Project/Search/Documents plugin on.
Comment 9 Leonardo 2021-04-05 04:08:33 UTC
Created attachment 137339 [details]
Kate x KWrite
Comment 10 Leonardo 2021-04-05 04:09:06 UTC
When i need a very small window i open the kWrite.

See the comparison of KWrite and Kate attached.
Both width are limited by tab name.

I opened the bug but i think it is not too important. For me it can be closed. Its up to you.

Thanks!
Comment 11 Christoph Cullmann 2021-04-05 15:13:22 UTC
Ok, then I would rather close this then try to figure out how to avoid these minimum sizes, given they are really very small already.

Thanks!