Bug 434825 - Dolphin 20.12 shrinks places panel on unmaximize; 20.08 was fine
Summary: Dolphin 20.12 shrinks places panel on unmaximize; 20.08 was fine
Status: RESOLVED DUPLICATE of bug 430521
Alias: None
Product: dolphin
Classification: Applications
Component: panels: places (show other bugs)
Version: 21.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-03-23 10:29 UTC by Antonio Orefice
Modified: 2021-08-04 18:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Unaligned url navigation bar (203.89 KB, image/png)
2021-03-24 11:44 UTC, Antonio Orefice
Details
dolphinui.rc to reproduce the issue (4.47 KB, application/vnd.kde.kxmlguirc)
2021-03-24 11:52 UTC, Antonio Orefice
Details
Workaround to keep alignment (225.21 KB, image/png)
2021-03-24 11:59 UTC, Antonio Orefice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Orefice 2021-03-23 10:29:05 UTC
SUMMARY
When i maximize the dolphin window and then demaximize it, the places panel is shrinked to unusable size for no apparente reason.

STEPS TO REPRODUCE
1. open dolphin
2. shrink his window width just before the moment places window starts to shrink.
3. maximize the dolphin window
4. unmaximize the dolphin window

OBSERVED RESULT
places panel is shrinked to unusable size
dolphin window size is also not restored correctly

EXPECTED RESULT
to have the window right as before i maximized it

Video of the problem showing new and old dolphin window behaviour.
note that the old dolphin version works ok.
https://www.youtube.com/watch?v=SlxUbLMLVhQ


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux packages 
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.12.2
Comment 1 Nate Graham 2021-03-23 11:59:55 UTC

*** This bug has been marked as a duplicate of bug 430969 ***
Comment 2 Antonio Orefice 2021-03-23 14:31:19 UTC
Nate, thanks for looking into this, but unfortunately the problem is different from the one you pointed out.
If you take a look to the video i posted on youtube, you can see that not only the panel becomes unusable just after deminimizing dolphin, but also the dolphin window is restored to a different size.
Are you *really* sure that the cause of the window getting restored to different size and panel shrinked to unusable size is the same of that bug?
Comment 3 Antonio Orefice 2021-03-23 15:08:00 UTC
Please note in that regard, that, as you can see in the video i posted, 
dolphin 20.08.1:
*DOES NOT shrink the places panel as i describet
* DOES NOT remember the panel size either.

This is another reason why i don't think the bugs are related at all, but i may be wrong, of course.
Comment 4 Nate Graham 2021-03-23 15:21:07 UTC
I see, you're right. Odd issue, so thanks for the video. That helps. However I cannot reproduce it.
Comment 5 Antonio Orefice 2021-03-23 16:25:29 UTC
I tried with another user and i cannot reproduce too.
Guess i've to find what setting is giving the problem then.
Comment 6 Antonio Orefice 2021-03-23 20:03:05 UTC
Hi again, i've this bug:
https://www.reddit.com/r/kde/comments/ls61rj/why_does_dolphin_do_this_weird_thing_when_i/
But it points to a (fixed?) bug:
https://bugs.kde.org/show_bug.cgi?id=430521
...but i tried even to use openbox instead of kwin and the issue is still there.

Any idea?
Comment 7 Antonio Orefice 2021-03-23 20:09:59 UTC

*** This bug has been marked as a duplicate of bug 430521 ***
Comment 8 Antonio Orefice 2021-03-24 11:44:27 UTC
Created attachment 137021 [details]
Unaligned url navigation bar
Comment 9 Antonio Orefice 2021-03-24 11:52:07 UTC
Created attachment 137023 [details]
dolphinui.rc to reproduce the issue
Comment 10 Antonio Orefice 2021-03-24 11:52:22 UTC
Yesterday i found important informations in the bug report:
https://bugs.kde.org/show_bug.cgi?id=430521
I marked this a sduplicate of it, but it has been marked as fixed again.
The issue reported initially in that bug, which is the same of mine has *NOT* been fixed.
However i found a way to trigger and reproduce it.
The culprit is this file: ~.local/share/kxmlgui5/dolphin/dolphinui.rc
Indeed, killing dolphin, issuing:
mv ~/local/share/kxmlgui5/dolphin/dolphinui.rc ~/.local/share/kxmlgui5/dolphin/dolphinui.rc.bak, and restarting dolphin makes it performs as expected, problem gone.
This, basically seems to reset toolbars to the default config, which seems to be changed.

See dolphin in plasma 5.18 here, therte is a pictuire of dolphin:
https://kde.org/announcements/plasma/5/5.18.0/
Note, that the url navigation is not on the toolbar

Now see plasma 5.21:
https://kde.org/announcements/plasma/5/5.21.0/
Note that the url navigation is on the toolbar!

I'm going to attach you the troubling file dolphinui.rc, but i'd like to point out that this is definitely a bug in the handling of the change, and i think it is affecting everyone using kde since sime time.

Also, the decision to move the url navigation widget to the toolbar raises problems for the ones that like to have text in the toolbar itself, because enabling it breaks url navigation widget alignment with the file view area.
moving the url navigation thing outside of the toolbar raises the described problem again.
Comment 11 Antonio Orefice 2021-03-24 11:59:32 UTC
Created attachment 137024 [details]
Workaround to keep alignment

Another thing i noticed when i deleted dolphinui.rc, is that the -previously present- "search toolbar", went gone.
It could be handy because one can use it to accomodate url navigation bar, sacrifying some space for the places panel.
In the screenshot attached, i'm using the troublesome dolphinui.rc, but have moved the url navigation bar to the search toolbar.
This way all is aligned, even with text in the main toolbar.
Comment 12 Antonio Orefice 2021-03-24 12:03:42 UTC
I hope you'll be able to reproduce the issue and find a way to continue keeping the url navigation bar outside of the toolbars without the unmaximizing problems, thanks.
Comment 13 Andrew Simmons 2021-05-25 20:31:24 UTC
The issue was resolved for me by following Antonio's workaround. Comparing my dolphinui.rc file that was causing problems to the newly generated one, the structure seems to be very different. For one, the top level tag is <kpartgui>, while in the newly generated file it is <gui>. They also have different DOCTYPEs.
Comment 14 Antonio Orefice 2021-06-23 10:35:25 UTC

*** This bug has been marked as a duplicate of bug 430521 ***
Comment 15 dragonpsychic 2021-06-24 06:19:03 UTC
Although the shrink size is OK, the Places panel is not restored to the previous maximised width, as per part two of the issue:

OBSERVED RESULT
1. places panel is shrinked to unusable size
2. ***dolphin window size is also not restored correctly***
Comment 16 Antonio Orefice 2021-08-02 07:56:16 UTC
Setting as duplicate again, i checked and it is indeed fixed in the latest development branch.

*** This bug has been marked as a duplicate of bug 430521 ***