Bug 484953 - Discover UI cosmetic bug with [Select None] button text overlapped with text "Total size: ..." upon Refresh
Summary: Discover UI cosmetic bug with [Select None] button text overlapped with text ...
Status: RESOLVED DUPLICATE of bug 479782
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 6.0.3
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 05:24 UTC by Peter
Modified: 2024-09-18 19:48 UTC (History)
4 users (show)

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


Attachments
Image (png) of UI bug (105.68 KB, image/png)
2024-04-03 05:24 UTC, Peter
Details
broken qml example (705 bytes, text/x-qml)
2024-04-12 11:04 UTC, Harald Sitter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2024-04-03 05:24:18 UTC
Created attachment 168077 [details]
Image (png) of UI bug

SUMMARY
Discover UI cosmetic bug text on [Select None] button overlap with text "Total size: ..."

STEPS TO REPRODUCE
1. Launch Discover
2. Ensure Discover is in Restore state, i.e. not maximised
3. Click the [Updates (x)] button in the left top panel
4. Click on the [Refresh] button in the top right-most Title bar area (directly under the Minimise, Maximise, Close icons)

OBSERVED RESULT
The [Select None] button text now has it's text overlapped with the Refresh text, e.g. "Total size: 508.7 MiB" on top of it - please refer to attached image.

EXPECTED RESULT
The text of the [Select None] button should remain unaffected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  openSUSE Tumbleweed (version 20240329)
KDE Plasma Version: 6.0.3 
KDE Frameworks Version: 6.0.0 
Qt Version:  6.6.3
Kernel Version: 6.8.1-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This cosmetic bug does not occur when Discover is maximised.
Comment 1 Harald Sitter 2024-04-03 06:14:39 UTC
*** Bug 484378 has been marked as a duplicate of this bug. ***
Comment 2 Bug Janitor Service 2024-04-09 12:23:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/813
Comment 3 Harald Sitter 2024-04-12 11:04:05 UTC
Created attachment 168415 [details]
broken qml example

I didn't manage to completely debug this unfortunately, making it hard to punt this to Qt.

The gist of it is that an item in a layout that is a footer of a page inside a Kirigami ColumnView (is not getting sized correctly. The page and layout sizes are correct though so something appears to go wrong inside the layout logic propagating to the children.

Of particular interest is that the width on the qml side is in fact changing to the correct width but later changing to 0 thus breaking. Here's example output where we can see the layout changing width, propagating to a rectangle inside and then a second bogus resize that breaks things.

Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickLayout::geometryChange QRectF(0,0 500x500) QRectF(0,0 500x0)
Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickGridLayoutBase::rearrange 0 QQuickRowLayout_QML_48(0x624327c69b80, id="columnViewLayout", parent=0x624327cbdbc0, geometry=0,0 500x500)
Qml Runtime(4007)/(qt.quick.layouts) unknown: "" QQuickGridLayoutBase::rearrange() QSizeF(500, 500)
Qml Runtime(4007)/(qml) expression for onWidthChanged: layout width 500
Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickLayout::geometryChange QRectF(0,468 500x32) QRectF(0,468 0x32)
Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickGridLayoutBase::rearrange 0 QQuickColumnLayout(0x624327ca4750, parent=0x624327ec3cb0, geometry=0,468 500x32, z=1)
Qml Runtime(4007)/(qt.quick.layouts) unknown: "" QQuickGridLayoutBase::rearrange() QSizeF(500, 32)
Qml Runtime(4007)/(qml) expression for onWidthChanged: rect width 500
Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickLayout::geometryChange QRectF(0,468 0x32) QRectF(0,-32 0x32)
Qml Runtime(4007)/(qt.quick.layouts) unknown: QQuickGridLayoutBase::rearrange 0 QQuickColumnLayout(0x624327ca4750, parent=0x624327ec3cb0, geometry=0,468 500x32, z=1)
Qml Runtime(4007)/(qt.quick.layouts) unknown: "" QQuickGridLayoutBase::rearrange() QSizeF(0, 32)
Qml Runtime(4007)/(qml) expression for onWidthChanged: rect width 0

I am attaching a fairly minimal example. Showing the problem. When run initially there is no footer rectangle because it has 0 width. When resizing the window it appears.
Comment 4 Nate Graham 2024-09-18 19:48:52 UTC

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