https://bugs.kde.org/show_bug.cgi?id=470927

Fushan Wen <qydwhotm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-desktop/-/commit/
                   |                            |2b02a18510510a670b84c40f464
                   |                            |dbe5618dc3dfe
   Version Fixed In|                            |6.0
         Resolution|---                         |FIXED

--- Comment #16 from Fushan Wen <qydwhotm...@gmail.com> ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to