Bug 422930

Summary: Icons are oddly shifted to the left in folders that contain only few items (1 line or less)
Product: [Applications] dolphin Reporter: Christian (Fuchs) <kde>
Component: view-engine: icons modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: isma.af, kfm-devel, nate
Priority: NOR    
Version: 20.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the issue, left is good, right is horizontally shifted
issue with lines visualizing the shifted placement

Description Christian (Fuchs) 2020-06-13 17:57:49 UTC
Created attachment 129322 [details]
Screenshot of the issue, left is good, right is horizontally shifted

SUMMARY

As per the attached screenshot: whenever a folder contains enough items to be > 1 line high, the icons are nicely centered. 

Folders containing fewer items have them shifted to the left

STEPS TO REPRODUCE
1. Create two folders
2. Create enough items in one to not fit into one line (e.g. 5 items if you have four per line)
3. Create fewer items in the other one
4. Open both folders

OBSERVED RESULT

Icons in one cases are horizontally shifted to the left

EXPECTED RESULT

Icons are horizontally placed the same
SOFTWARE/OS VERSIONS
Reproducable on Fedora (with below versions) and Gentoo (mostly the same versions, has been an issue for a while)
Linux/KDE Plasma: KDE apps 20.04.2
KDE Frameworks Version:  5.70
Qt Version: 5.13.2

ADDITIONAL INFORMATION

This is a minor papercut, but it makes the UI very "jumpy" when navigating through folders, which is a bit annoying.
Comment 1 Nate Graham 2020-06-15 16:44:34 UTC
I can't actually see the problem when I look at the screenshot, even after reading the description. Any chance you could attach a screen recording that makes it obvious?
Comment 2 Nate Graham 2020-06-15 16:47:40 UTC
Ah I see it now when comparing the icon location to the arrow in the path bar.
Comment 3 Christian (Fuchs) 2020-06-15 17:03:03 UTC
Created attachment 129391 [details]
issue with lines visualizing the shifted placement