Bug 185179 - Folderview has scrollbars after logging out and in again
Summary: Folderview has scrollbars after logging out and in again
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-folderview (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 194285 199028 201350 209328 209513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-21 23:27 UTC by Erlend Hamberg
Modified: 2014-01-06 23:01 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of wrong grid on desktop (51.55 KB, image/jpeg)
2009-10-16 17:07 UTC, Peter Paulsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erlend Hamberg 2009-02-21 23:27:50 UTC
Version:            (using KDE 4.2.0)
Installed from:    SuSE RPMs

i have a small folderview widget on my desktop showing four folders. i try to keep this as small as possible by downsizing it as much as i can before it gets scroll bars. after this is done i lock the widgets.
however, when i log out and log in again later this widget will have a scrollbar on the right side. to get rid of this i have to unlock the widgets, make the folderview larger, then do the "make it as small as i can without getting scrollbars" dance again. After this i end up with a folderview with the same size it had when i logged in, but without the scrollbar.
Comment 1 Aaron J. Seigo 2009-05-27 18:04:00 UTC
*** Bug 194285 has been marked as a duplicate of this bug. ***
Comment 2 Erlend Hamberg 2009-05-27 18:31:52 UTC
since reporting this i have found out that it's also quite often possible to get rid of the scroll bars by scrolling down and then up again.
Comment 3 André Neves 2009-10-04 14:23:13 UTC
*** Bug 209328 has been marked as a duplicate of this bug. ***
Comment 4 Artur Souza (MoRpHeUz) 2009-10-05 13:56:25 UTC
*** Bug 209513 has been marked as a duplicate of this bug. ***
Comment 5 Aaron J. Seigo 2009-10-14 23:20:40 UTC
*** Bug 199028 has been marked as a duplicate of this bug. ***
Comment 6 Peter Paulsen 2009-10-16 16:48:51 UTC
@Comment #2: Scrolling up and down doesn't help when you use the folderview desktop, the scrollbar stays there until you move the icons on the desktop down. They wander a little more up on every login until about the third login the scrollbar appears. 

Doesn't happen when I have the eventlist plasmoid
(http://kde-look.org/content/show.php?content=107779) on my desktop as Janet mentioned in Bug 199028 (tested on two different machines with different distributions), maybe someone can take a look at the plasmoid, there must be a reason why it cures the wandering icons/scrollbar behaviour. As the same plasmoid causes two other bugs (Bug 206396 and Bug 206395) this maybe means that the same "function" that enables the full expansion of the taskmanager in the panel and fixes the size of the trash widget CAUSES the bug with the wandering icons and the scrollbar on the desktop?

I guess I should mark Bug 201350 as a duplicate too, because the wandering icons I described there are the cause for the scrollbar on the desktop - but what is the cause for the wandering icons?
Comment 7 Peter Paulsen 2009-10-16 16:59:57 UTC
*** Bug 201350 has been marked as a duplicate of this bug. ***
Comment 8 Peter Paulsen 2009-10-16 17:07:31 UTC
Created attachment 37621 [details]
screenshot of wrong grid on desktop

Tanja Schulte described a grid problem in Bug 199028 that's connected to the wandering icons and the scrollbar on the desktop, I have attached a screenshot. This causes the scrollbar too. The icons wander because the grid seems to be out of shape after each login. Maybe a wrong calculated desktop size? I wonder if this problem also exists when there is no panel at the top and bottom.
Comment 9 uetsah 2009-11-23 11:26:01 UTC
This bug is also still present in KDE 4.3.3... :-(
Comment 10 uetsah 2009-11-23 13:39:48 UTC
Following Peter's comments about a possible influence of panels and plasmoids, I did some more experimentation. I stripped my desktop of all panels and plasmoids - just leaving a clean folder-view-mode plasma desktop (with "align icons in a grid" enabled).

And still, it is possible to position icons in such a way that the scrollbar bug occurs after logging out and back in.
In this scenario, the bug occurs whenever there is an icon close to the bottom edge of the screen positioned lower than the grid should allow.

So I guess we're talking about two bugs here actually:

  A) The fact that it is possible to position icons closer to the bottom edge than the grid should allow.

  B) The fact that the scrollbar appears after logging in when there is an icon too close to the bottom edge of a folder view.

Note that bug A will cause bug B, but bug B can occur also occur without bug A, for example when using a small folder-view plasmoid that has been down-sized as much as possible, as described by the original reporter of this bug.

The only difference that a panel makes (as far as I can see) is that it makes accidentally placing icons off-grid (bug A!) much easier.

Here are two screenshots showing how plasma let me position some icons in my clean folder-view desktop incorrectly (more specifically, position the according to a second, incorrect grid):
http://imagebin.ca/view/vRaewQ.html (1400x1050 desktop, without panel)
http://imagebin.ca/view/egNuPD5y.html (1400x1050 desktop, without panel)

In both of these configurations, logging out and then back in caused the scrollbar bug. (i.e., vertical scrollbar appears; scrolling down and back up makes it go away.)

Here's an outline of how I was able to position the icons in the way shown in the two previous screenshots:
http://imagebin.ca/view/OdA0slt9.html

I hope this might give you Plasma developers some clues as to what is going on here...
Comment 11 uetsah 2009-11-23 13:42:38 UTC
small correction: for the second screen shot, it should read  "with panel"
Comment 12 Dario Andres 2009-12-07 01:08:48 UTC
*** Bug 217092 has been marked as a duplicate of this bug. ***
Comment 13 Fredrik Höglund 2010-01-27 18:47:27 UTC
The grid alignment problem has been separately reported as bug 195996, and should be fixed in 4.4 RC3.

The problem with wandering icons related to panels is also a different problem from the one originally described in this bug report, although it would also cause a scrollbar to appear. This problem should also be fixed in 4.4 RC3.

I want to thank everyone for the excellent analyses and screenshots of those problems. Your guesses were very accurate.

If you can, please test the next release candidate to make sure these problems are no longer reproducable.

The original problem described in this bug report will be fixed momentarily.
Comment 14 Fredrik Höglund 2010-01-27 18:48:08 UTC
SVN commit 1081083 by fredrik:

Use the full grid space available to the items when computing the
bounding rect.

The item rects are set to this size in the initial layout pass,
but are later adjusted to the size actually used the first time
they're painted.

This can result in a larger bounding rect being computed after
the initial layout than what would be computed when resizing the
view after all the icons have been painted.

Fixed for: KDE 4.4 RC3.
BUG: 185179


 M  +4 -1      iconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1081083
Comment 15 Janet 2014-01-06 23:01:53 UTC
BTW: I just have this issue (scrollbar on folderview desktop and icons out of sight after login) on a KDE SC 4.11.3 and 4.12 (Mint 16)...