Bug 479714 - Fuzzy clock overflows when on vertical panel
Summary: Fuzzy clock overflows when on vertical panel
Status: CONFIRMED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: fuzzy-clock (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-13 01:07 UTC by Alex Čižinský
Modified: 2024-01-17 22:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The bug (66.95 KB, image/png)
2024-01-13 01:07 UTC, Alex Čižinský
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Čižinský 2024-01-13 01:07:06 UTC
Created attachment 164852 [details]
The bug

SUMMARY
The fuzzy clock applet overflows when placed on vertical panel
 
STEPS TO REPRODUCE
1.  Create vertical panel
2.  Add the fuzzy clock applet

OBSERVED RESULT
The text is too long for the panel width, causing it to overflow.

EXPECTED RESULT
The text is not overflowing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 
(available in About System)
KDE Plasma Version: 6.0.80 - Plasma 6 RC 1
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

The bug is present on both plasma 5 and 6

ADDITIONAL INFORMATION
The bug may not be present due to the folowing reasons: 
- The panel is too thick - the whole text can fit in the panel's width 
- The current fuzzy time is too short to overflow - try changing the fuzzyness
Comment 1 Nate Graham 2024-01-16 23:03:38 UTC
Can reproduce.
Comment 2 Marco Martin 2024-01-17 13:53:03 UTC
but what would be the correct behavior exactly when the panel is very narrow?

wrapping the text a lot of times?
having it scrolling?
something else?
Comment 3 Nate Graham 2024-01-17 22:38:26 UTC
I'd say wrapping would make the most sense. It would cause the widget to increase and decrease in height, which would be annoying, but at least the widget would be functional.

An alternative might be to wrap and pre-reserve the maximum amount of space that any string could take up, but that might be even more annoying, and also difficult to know why it's taking up more space than it usually needs to.