Bug 381551 - With a vertical panel, Digital Clock's Long Date is truncated
Summary: With a vertical panel, Digital Clock's Long Date is truncated
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 5.9.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2017-06-22 21:18 UTC by Nate Graham
Modified: 2020-02-16 23:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.18.0


Attachments
Long Date string truncated with a vertical panel (9.37 KB, image/png)
2017-06-22 21:18 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2017-06-22 21:18:48 UTC
Created attachment 106249 [details]
Long Date string truncated with a vertical panel

When using a vertical panel and the Digital clock with Show date on and the Long Date format, the date string almost always gets truncated. If there's not enough horizontal space (which will almost always be true with a vertical panel), it will be truncated and say:

Thursday, J...

Instead of using multiple lines to produce:

Thursday
July 21st
2017

See attached screenshot.

This was already fixed for the Short Date format in https://bugs.kde.org/show_bug.cgi?id=355242, but the problem persiste for the Long Date format
Comment 1 Alexander Mentyu 2017-12-11 07:22:33 UTC
Confirming. Also the text for long date can be bigger (~2x bigger than current size - it will be more readable)

Distribution: KDE neon Developer Edition - Stable Branches
Plasma: 5.11.4
Frameworks: 5.41.0
Qt: 5.9.3
Kernel 4.10.0-40-generic
Comment 2 Nate Graham 2019-12-31 01:02:21 UTC
Submitted a patch to fix this: https://phabricator.kde.org/D26312
Comment 3 Nate Graham 2020-01-10 06:07:37 UTC
Git commit 02c89d749475f01f23036a6011f1bfd20254fc7c by Nate Graham.
Committed on 10/01/2020 at 06:07.
Pushed by ngraham into branch 'master'.

[applets/digital-clock] Fix truncated Long Date display in a vertical panel

Summary:
FIXED-IN: 5.18.0

Test Plan:
Before: {F7851382, size=full}

After: {F7851383, size=full}

Texted extensively because this code is so brittle. No regressions with long date in a
thick or normal-sized horizontal panel or short date in a thick or normal-sized
horizontal or vertical panel.

The one issue I could find is that sometimes switching between short and long date
formats in a double-thickness vertical panel causes the long date  to be truncated again
until plasmashell is restarted. I was unable to determine why. Assistance would be
appreciated if this is a blocker.

Reviewers: #plasma, #vdg, ndavis

Reviewed By: #vdg, ndavis

Subscribers: ndavis, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26312

M  +2    -2    applets/digital-clock/package/contents/ui/DigitalClock.qml

https://commits.kde.org/plasma-workspace/02c89d749475f01f23036a6011f1bfd20254fc7c