Bug 422993 - Search field layout problem when using high DPI
Summary: Search field layout problem when using high DPI
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: sidebarview (other bugs)
Version First Reported In: 5.19.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-15 00:25 UTC by Frank Steinmetzger
Modified: 2020-07-09 19:24 UTC (History)
3 users (show)

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


Attachments
Screenshot of systemsettings at 217 DPI showing the described layout bug (126.49 KB, image/png)
2020-06-15 00:25 UTC, Frank Steinmetzger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2020-06-15 00:25:14 UTC
Created attachment 129370 [details]
Screenshot of systemsettings at 217 DPI showing the described layout bug

SUMMARY
I have a laptop with a 176 DPI screen and a tablet with a 217 DPI screen. On both, the search field on the top left of the window escapes the allotted vertical layout space. On a PC with a monitor set to 109 dpi, the layout looks fine.

I’m attaching a screenshot made on the tablet.

STEPS TO REPRODUCE
Set a rather high DPI value in the Fonts kcm.

OBSERVED RESULT
The height of the search text field grows substantially. This has two results:
- lots of vertical white space within the input field
- the input box escapes the layout’s row and overlaps with the view below it

EXPECTED RESULT
The input field’s size shall fit with that of the neighbouring widgets in its layout row.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: I’m not sure what I’m supposed to write here; the kernel version, the distro and install source? There is no “Linux/KDE Plasma” line in Systemsettings→System info.
KDE Plasma Version: 5.19.0
KDE Frameworks Version:  5.70.0
Qt Version: 5.15.0
Comment 1 Patrick Silva 2020-06-15 05:11:26 UTC
yesterday I noticed vertically bigger search field in Discover 5.19 when using display scale 125%.
Comment 2 Nate Graham 2020-06-19 00:28:46 UTC
Unfortunately high DPI stuff is kind of a mess. However setting a very high font DPI value without using the Qt scaling system is guaranteed to fail and leads to many issues like this. For that reason is is not supported; you should use the Qt scaling in the KScreen KCM. This actually changes the font DPI automatically, it just does other things too. You can then fine-tune the font DPI to be closer to the target value if it's still not right.

Please try setting an appropriate scale factor using the KScreen KCM and let me know if the issue goes away.
Comment 3 Bug Janitor Service 2020-07-04 04:33:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Frank Steinmetzger 2020-07-09 18:29:50 UTC
Yes I found a combination of scaling, DPI and font sizes that is satisfactory.
Comment 5 Nate Graham 2020-07-09 19:18:51 UTC
Great!