Bug 479714

Summary: Fuzzy clock overflows when on vertical panel
Product: [Plasma] kdeplasma-addons Reporter: Alex Čižinský <alex.cizinsky>
Component: fuzzy-clockAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: nate, notmart
Priority: NOR Keywords: qt6
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The 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.