Created attachment 87247 [details]
The desktop in folder mode without additional panel
When I add a second panel with the desktop in "Folder" mode, then the content of the folder won't be displayed.
Steps to reproduce:
1. Set the desktop to "Folder" mode
2. Select a folder with content
3. Add another panel
4. The content of the folder should not be displayed anymore
5. Remove the new panel again
6. The content of the folder should be displayed again
Created attachment 87248 [details]
Folder mode and additional panel
As one can see, when the second panel is added then the content of the folder stops being displayed.
does moving the panel around make it reappear?
it may be availableScreenSpace not being calculated correctly
Can reproduce, am investigating right now.
Hmm, unfortunately I could only reproduce it once. Basically, what happened is that the new panel appeared on the left screen edge, the icons disappeared and a vertical scrollbar appeared on the desktop with about 1.5cm of scroll range on a 24" 16:10 monitor.
We need to identify a set of circumstances to reproduce it reliably.
I sadly can't reproduce it reliably either. The only consistent thing is that the panel appears always on the left screen edge for me, and when I move it to the top the Folder view disappears.
However, when I jolt the panel around without letting go of the "Screen Edge" button then it will eventually appear again.
> [18:27] <bshah> Sho_: hello!
> [18:30] <Sho_> bshah: hey
> [18:30] <bshah> Sho_: this is about bug 336376
> [18:30] <bugbot> KDE bug 336376 in plasmashell (Folder) "Folder view disappears when a second panel is added" [Major,Confirmed: ] http://bugs.kde.org/336376
> [18:31] <bshah> I have (maybe) steps to reproduce..
> [18:31] <Sho_> neat
> [18:31] <Sho_> do tell?
> [18:31] <bshah> after startup it happens only once..
> [18:31] <bshah> but if you change edge of desktop toolbox it will appear again..
> [18:31] <bshah> can you try?
> [18:32] <madeti> Shaan7: ksinny: updated rr
> [18:33] <bshah> Sho_: I am doing this from morning and I am sure that this is steps to reproduce that.. :p
Tried it, but doesn't work to reproduce here ... anyone else?
I added some qDebugs and noticed that availableScreenRect is QRect(1279,0 1x771) when this happens and this does not make any sense.
Any more debug output I can provide?
Git commit e11e9c7c6c1836c28b455014ae93e10bb61af540 by Bhushan Shah.
Committed on 20/06/2014 at 14:46.
Pushed by bshah into branch 'master'.
Set alignment of the panel before setting the thickness
if we will not set it panel geometry will end up being wrong and hence availableScreenRect
This fixes plasmoids and icons being disappeared when adding panels.
M +1 -2 shell/panelview.cpp