Bug 458195 - Document switcher layout is broken
Summary: Document switcher layout is broken
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-23 08:28 UTC by popov895
Modified: 2022-08-27 09:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Document Swicther (184.54 KB, image/png)
2022-08-23 08:28 UTC, popov895
Details

Note You need to log in before you can comment on or make changes to this bug.
Description popov895 2022-08-23 08:28:16 UTC
Created attachment 151515 [details]
Document Swicther

SUMMARY

The layout in the Document Switcher plugin is broken.

SOFTWARE/OS VERSIONS

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Graphics Platform: X11
Comment 1 Christoph Cullmann 2022-08-23 09:21:06 UTC
Yes, seems an issue if all documents are untitled, not sure why.
Comment 2 Christoph Cullmann 2022-08-23 19:01:11 UTC
Hmm, at work I could reproduce, on X11, at home with Wayland this seems to work properly.
Comment 3 Waqar Ahmed 2022-08-25 19:54:49 UTC
Interestingly, the popup doesn't even have a parent widget.
Comment 4 Dominik Haumann 2022-08-26 08:25:51 UTC
The reason is simple: The 0th column contains the path of the files. Since there are only untitled documents, there are only empty paths, i.e. of length = 0 chars. The 0th column is still visible, likely with a minimum width.

The possible fix is: When showing the tab switcher, first check whether there is an entry with a valid path. If not, hide column 0. Then this should be fixed.
Comment 5 Christoph Cullmann 2022-08-26 08:54:59 UTC
Hmm, funny enough, for me this works on X11 and Wayland even with that.
Comment 6 popov895 2022-08-27 09:14:06 UTC
I can no longer reproduce this bug.