Bug 417728

Summary: The date is initially (after login) too big and wraps when the panel is vertical.
Product: [Plasma] plasmashell Reporter: Jeremy Plsek <jeremyplsek>
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, kde, nate
Priority: HI Keywords: regression
Version: 5.18.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=381551
Latest Commit: Version Fixed In:

Description Jeremy Plsek 2020-02-16 02:05:27 UTC
SUMMARY
The date is initially (after login) too big and wraps when the panel is vertical.

STEPS TO REPRODUCE
Create a default panel
Move it to the right edge of the screen.
Change the width of the panel to 56px.
Enable the date for the widget.
Log out.
Log in.

OBSERVED RESULT
https://i.imgur.com/sxWkGGX.png

EXPECTED RESULT
https://i.imgur.com/8HGtgqy.png
(Although, the date is a bit too small imo.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch 5.18.0 and KDE Neon 5.18.80

ADDITIONAL INFORMATION
As a workaround, resizing the panel to be smaller, then back to 56px will fix it. Although, the date is a bit too small imo.
Comment 1 Nate Graham 2020-02-16 23:54:04 UTC
Oh gosh. Almost certainly a regression from https://cgit.kde.org/plasma-workspace.git/commit/?id=02c89d749475f01f23036a6011f1bfd20254fc7c, to fix Bug 381551.

This clock sizing code is so fragile. :/
Comment 2 Allan Sandfeld 2020-02-20 21:03:19 UTC
I had literally the opposite regression. The text is now too small.
Comment 3 Nate Graham 2020-03-20 22:45:27 UTC

*** This bug has been marked as a duplicate of bug 417852 ***
Comment 4 hexchain 2020-07-11 09:42:05 UTC
I still have this problem on 5.19.3, with "Date Format" set to "Short date" and font style set to bold. See https://imgur.com/a/OcbSquV.

This happens on every restart of plasmashell. Manually increasing the width of the panel and then shrinking to its original size corrects it.