| Summary: | "Get new widgets" button overlaps scroll bar when search result is empty | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Patrick Silva <bugseforuns> |
| Component: | Widget Explorer sidebar | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | kde, notmart |
| Priority: | NOR | ||
| Version First Reported In: | 5.7.3 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| URL: | http://imgbox.com/Ok5Iio2K | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2016-08-20 21:39:44 UTC
this looks like it's a ScrollView bug, it seems to size the scrollbar wrong when there are no item (and the scrollbar is set as always shown (this is done to work around another bug) from Qt's qtquickcontrols/src/controls/ScrollViewStyle.qml:
property int extent: Math.max(minimumHandleLength, __styleData.horizontal ?
(flickableItem ? flickableItem.width/flickableItem.contentWidth : 0 ) * bg.width :
(flickableItem ? flickableItem.height/flickableItem.contentHeight : 0) * bg.height)
giving a divide by zero when flickableItem.contentHeight is 0
Fixed in Qt 5.8 Plasma 5.9.3 is built against qt 5.8 on Arch but this bug is still present. I can confirm the bug is still present when running with Qt 5.8.0. Reopening as it's not fixed. Weird, my commit is in Qt 5.8 branch before 5.8 tagging [1]. [1] https://code.qt.io/cgit/qt/qtquickcontrols.git/commit/?id=8a223fc04e003d93c63dc3c1786da115dd70c7bd Solved on Arch running plasma 5.10 beta. \o/ |