When I open dolphin or refresh it's contents, sometimes this content moves to the right, which can be seen.
When it happens:
ONLY!!! if there is not enough space to display contents (a scrollbar appears)
ONLY!!! when this scrollbar is on the top
ONLY!!! when Oxygen is used as a KDE-style
ONLY!!! in "Icons" view mode
With antialising enabled/disabled, effects enabled/disabled, Oxygen animations enabled/disabled
On two different computers with different displays and both with Nouveau or Nvidia graphics driver
Steps to Reproduce:
1. Set Oxygen as a KDE style
2. Set "Icons" as a view mode in Dolphin
3. Open a directory with large amount of files (scrollbar must appear)
4. Refresh contents of this directory (F5, for example)
Content of the directory appears, and in a second it is all moved to the right by a couple of pixels.
Content of the directory appears and stays on its place.
I could see this bug in Kubuntu 14.04 amd64 livedvd, Ubuntu 14.04 with KDE built from mini.iso and in Gentoo.
Thanks for the bug report, I can reproduce it.
Dolphin does the layouting twice (first without scrollbar then with scrollbar). I'll try to fix it when I have enough time. Maybe Frank has already a great idea how to solve it the right way (as usual). ;)
Thank you very much, I'm looking forward to the bugfix.
(In reply to comment #1)
> Maybe Frank has already a great idea how to solve it the right way (as usual). ;)
Unfortunately not :-(
My first idea would be to set a breakpoint in KItemListViewLayouter::doLayout to see where it's called from for the two different layouts, and/or add some debug output to find out more about the problem.
It also happens wit bespin & virtuality, but not plastique or skulpture
-> I bet everyones right arm that it's related to SH_ScrollView_FrameOnlyAroundContents returning false for those styles.
So Is it bug in Dolphin or in KDE Styles?
(In reply to comment #5)
> So Is it bug in Dolphin or in KDE Styles?
No, the problem is in Dolphins layout handling.
Git commit 098294f49ef61b2f93874f6d9dd3e43b7d6e2410 by Emmanuel Pescosta.
Committed on 25/05/2014 at 16:30.
Pushed by emmanuelp into branch 'KDE/4.13'.
Fix Bug 334696 - File/directory icons/names move to the right when opening/refreshing contents of Dolphin
Take the scrollbar spacing into account.
M +8 -2 dolphin/src/kitemviews/kitemlistview.cpp
Thank you for fixing this bug! I have downloaded .diff, patched the sources and built a package. Now dolphin works fine!
(In reply to comment #8)
> Thank you for fixing this bug! I have downloaded .diff, patched the sources
> and built a package. Now dolphin works fine!
You are welcome!
Thanks for testing the patch, always appreciated! :)