| Summary: | Renamed sensor labels are truncated in "System monitor Sensor" widgets set to "Text Only" display style and placed in panels | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | LeopardEnthusiast <leopardenthusiast> |
| Component: | System Monitor widgets | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahiemstra, nate, notmart |
| Priority: | NOR | ||
| Version First Reported In: | 6.0.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kquickcharts/-/commit/4e2e898286e1de58bb321b71808d1bed87eff9a0 | Version Fixed/Implemented In: | 6.3 |
| Sentry Crash Report: | |||
| Attachments: |
Sensor with default name, displaying correctly
Sensor with changed name, displaying incorrectly. The last 2 characters are replaced with an ellipsis. |
||
|
Description
LeopardEnthusiast
2024-05-01 16:44:39 UTC
Created attachment 169078 [details]
Sensor with changed name, displaying incorrectly. The last 2 characters are replaced with an ellipsis.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kquickcharts/-/merge_requests/77 Git commit 4e2e898286e1de58bb321b71808d1bed87eff9a0 by Arjen Hiemstra. Committed on 06/05/2024 at 11:15. Pushed by ahiemstra into branch 'master'. controls: Ceil all components of preferredWidth in LegendDelegate contents Layout internally `ceil()`s all sizes, so not doing the same means we get a slight mismatch between the preferred size the layout wants to be at and the preferred size we calculate, leading to the label being elided. While we're at it, drop the Item container and FontMetrics usage which can be done using Label's implicitWidth these days. M +8 -19 controls/LegendDelegate.qml https://invent.kde.org/frameworks/kquickcharts/-/commit/4e2e898286e1de58bb321b71808d1bed87eff9a0 |