Bug 470927 - Default Plasma panel widgets are arranged in the wrong order
Summary: Default Plasma panel widgets are arranged in the wrong order
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Neon Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
: 471379 472695 473188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-06-12 08:56 UTC by Stephen.Gear007
Modified: 2023-11-16 20:36 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments
Neofetch plus screenshot taskbar (66.77 KB, image/png)
2023-06-12 08:56 UTC, Stephen.Gear007
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen.Gear007 2023-06-12 08:56:32 UTC
Created attachment 159608 [details]
Neofetch plus screenshot taskbar

Neon unstable taskbar kickoff clock .... ... ..
All not in correct places, all squished of to the left.


STEPS TO REPRODUCE
1. download unstable iso
2. build VM
3. Install
4. login

OBSERVED RESULT
Taskbar with items squished to the left, icons pager clock all to left.

EXPECTED RESULT
Taskbar  

SOFTWARE/OS VERSIONS
Arch VM Os info see screenshot
Comment 1 Jonathan Riddell 2023-06-12 09:18:09 UTC
The user is on kde neon unstable edition running plasma from git master.  He reports that panel items are all on the left but the systray and clock should be on the right of the panel.
Comment 2 Jonathan Riddell 2023-06-13 10:14:14 UTC
I can confirm this today upgrading to latest KDE neon unstable packages.  My existing panels are fine but if I add a new panel then it is all on the left.
Comment 3 Justin Zobel 2023-06-15 05:32:03 UTC
Confirmed by Jonathan.
Comment 4 Nate Graham 2023-06-15 15:16:06 UTC
Pretty sure this got fixed in the last day or two.

Can you wait a few days, update, reset the panel layout to how yo want, reboot, and see if it's still happening?
Comment 5 Stephen.Gear007 2023-06-15 15:32:07 UTC
Its just a vm. Every iso (Unstable) is like this from the installer, Im not altering it at all.
I downed unstable everyday since always the same.
Comment 6 Stephen.Gear007 2023-06-16 03:26:30 UTC
Have tried developer edition. This worked normal panel.
So this morning I downloaded unstable 1508 iso and it's the same as before the panel is all to the left.
Comment 7 Stephen.Gear007 2023-06-19 08:07:54 UTC
Hi I installed the latest iso(unstable) I updated the install and rebooted and adked for a default new panel.
Sadly this maid no difference, still all the items on the left.
Comment 8 Jonathan Riddell 2023-06-23 08:16:33 UTC
Still in neon unstable ISO build today 20230622-1056 (also Nate can recreate it by just adding a new panel)
Comment 9 Nate Graham 2023-06-23 08:20:27 UTC
You can reproduce this by adding a new default panel through the desktop context menu > Add panel > Default Panel.
Comment 10 Stephen.Gear007 2023-06-23 11:16:48 UTC
Waiting on delivery off hardware to test this in anything other than a VM delivery likely 3/4 hr.
Will test today's present ISO -neon unstable. Will update 17:00-18:00 GMT
Comment 11 Justin Zobel 2023-06-23 15:21:13 UTC
*** Bug 471379 has been marked as a duplicate of this bug. ***
Comment 12 Enrico 2023-07-01 10:50:24 UTC
Same here with the last 20230625 ISO on real hardware (Intel NUC12)
Comment 13 Nate Graham 2023-07-31 17:52:28 UTC
*** Bug 472695 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2023-08-09 16:57:31 UTC
*** Bug 473188 has been marked as a duplicate of this bug. ***
Comment 15 Bug Janitor Service 2023-08-13 03:22:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1658
Comment 16 Fushan Wen 2023-08-14 15:07:58 UTC
Git commit 2b02a18510510a670b84c40f464dbe5618dc3dfe by Fushan Wen.
Committed on 14/08/2023 at 17:07.
Pushed by fusionfuture into branch 'master'.

Panel: fix widgets being arranged in wrong order in new panel

After Plasmoids are ported to PlasmoidItem, `checkLastSpacer()` can detect
the Layout properties of a widget immediately after a new panel is added.
The task manager widget sets `Layout.fillWidth: true` in horizontal panels, so
after the task manager widget is added to panel, `hasSpacer` will become
true, and `lastSpacer` will become invisible, making `layout.childAt`
unable to locate any item because QQuickItem::childAt will ignore
invisible items.

This adds a new visible condition to `lastSpacer`. When lastSpacer's
width is equal to currentLayout's width, it means all widgets are still
being loaded in a new panel, so `lastSpacer` should still keep visible
to make `layout.childAt` able to find it.
FIXED-IN: 6.0

M  +1    -0    containments/panel/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/2b02a18510510a670b84c40f464dbe5618dc3dfe
Comment 17 Patrick Silva 2023-11-16 12:49:59 UTC
It's happening again on neon unstable when I add a new panel.
Comment 18 Nate Graham 2023-11-16 20:36:50 UTC
Yep, reported again as Bug 477079, with a different root cause this time.