Bug 480801 - When Digital Clock is on a narrow vertical panel with seconds shown, time gets cut off when using 24-hour time (12-hour is fine)
Summary: When Digital Clock is on a narrow vertical panel with seconds shown, time get...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 6.0.0
Platform: Arch Linux Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6, regression
: 484724 488861 488987 492856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-03 20:06 UTC by Konstantin
Modified: 2024-09-20 18:35 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
Screen of bug. Clock gone rogue here, it really needs an option to turn 90 degrees (2.18 KB, image/png)
2024-02-03 20:46 UTC, Konstantin
Details
Screenshot of the clock being cut off (23.09 KB, image/png)
2024-03-13 16:35 UTC, Leon
Details
The date text is smaller than the time text. Barely readable. (11.52 KB, image/png)
2024-09-17 10:53 UTC, Fernando M. Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2024-02-03 20:06:27 UTC
SUMMARY
***
Clock is horisontal on vertical panels
***


STEPS TO REPRODUCE
1. Create vertical panel
2. Add a clock 
3. See bug

It was working as intended on 5.27

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Konstantin 2024-02-03 20:46:39 UTC
Created attachment 165508 [details]
Screen of bug. Clock gone rogue here, it really needs an option to turn 90 degrees
Comment 2 Doug 2024-02-05 05:18:43 UTC
The Digital Clock for me resized and fit properly into the panel width, but that resulted in a tiny text size.

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: AMD Radeon Pro WX 3200 Series
Manufacturer: Dell Inc.
Product Name: Precision 7540
Comment 3 Nate Graham 2024-02-06 20:49:11 UTC
Same; I use a vertical panel myself and don't see this. I suspect the issue is caused by how you've configured the Digital Clock widget. Are you able to reproduce the issue with a *new* digital Clock Widget placed on the same panel?

If not, please revert changed settings in your normal Digital Clock widget one-by-one until you find the one causing the issue.

Thanks!
Comment 4 Konstantin 2024-02-06 21:10:32 UTC
(In reply to Nate Graham from comment #3)
> Same; I use a vertical panel myself and don't see this. I suspect the issue
> is caused by how you've configured the Digital Clock widget. Are you able to
> reproduce the issue with a *new* digital Clock Widget placed on the same
> panel?
> 
> If not, please revert changed settings in your normal Digital Clock widget
> one-by-one until you find the one causing the issue.
> 
> Thanks!

Just added a new widget, enabled seconds - and boom - issue appears again. How I can turn a widget or font inside it 90 degrees, like in Plasma 5?
Comment 5 Konstantin 2024-02-06 21:11:07 UTC
For me, seconds is cruical
Comment 6 Nate Graham 2024-02-06 21:14:56 UTC
Rotating widgets inside Panels was never a feature. You may be thinking of rotating widgets on the desktop, which is still there in Plasma 6 and has not changed.

If you say it's related to seconds though, that helps. I can reproduce the issue when I turn on seconds, but only when using a 24-hour time display. With 12-hour, it all works fine.
Comment 7 Konstantin 2024-02-06 21:15:47 UTC
I always use 24-hour with seconds. Never thought about other clock formats.
Comment 8 Leon 2024-03-13 16:35:56 UTC
Created attachment 167107 [details]
Screenshot of the clock being cut off

Having the same issue. I have my taskbar on the right side and the clock is configured to show seconds and use the 24h format. It seems to me that seconds are not considered when automatically determining the font size - if I turn seconds off, the clock stays at the same font size and fits perfectly. This happened on two machines after upgrading to Plasma 6.
Comment 9 Nate Graham 2024-06-26 20:55:09 UTC
*** Bug 488987 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-08-19 23:00:22 UTC
*** Bug 484724 has been marked as a duplicate of this bug. ***
Comment 11 Fernando M. Muniz 2024-09-17 10:53:39 UTC
Created attachment 173759 [details]
The date text is smaller than the time text. Barely readable.
Comment 12 Nate Graham 2024-09-18 19:12:16 UTC
*** Bug 492856 has been marked as a duplicate of this bug. ***
Comment 13 Bug Janitor Service 2024-09-19 10:12:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4724
Comment 14 Fernando M. Muniz 2024-09-19 10:52:19 UTC
*** Bug 488861 has been marked as a duplicate of this bug. ***
Comment 15 Akseli Lahtinen 2024-09-19 16:56:35 UTC
Git commit c89700352f94e6b27177b00d5b17404bef54b302 by Akseli Lahtinen.
Committed on 19/09/2024 at 16:14.
Pushed by akselmo into branch 'master'.

DigitalClock.qml: Use Text.Fit to avoid overflow in vertical panels when showing seconds

Text.VerticalFit only took height into account. Text.Fit will take both
height and length into account, which fixes the digital clock fitting
inside small panels even when seconds are shown
FIXED-IN: 6.2.0

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/c89700352f94e6b27177b00d5b17404bef54b302
Comment 16 Akseli Lahtinen 2024-09-19 17:39:03 UTC
Git commit 05e0a0c4e2dae5834a075e7901b14598a9cdf047 by Akseli Lahtinen.
Committed on 19/09/2024 at 16:57.
Pushed by akselmo into branch 'Plasma/6.2'.

DigitalClock.qml: Use Text.Fit to avoid overflow in vertical panels when showing seconds

Text.VerticalFit only took height into account. Text.Fit will take both
height and length into account, which fixes the digital clock fitting
inside small panels even when seconds are shown
FIXED-IN: 6.2.0


(cherry picked from commit c89700352f94e6b27177b00d5b17404bef54b302)

c8970035 DigitalClock.qml: Use Text.Fit to avoid overflow in vertical panels when showing seconds

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/05e0a0c4e2dae5834a075e7901b14598a9cdf047