Bug 481890

Summary: In height stretched calendar has non uniformly aligned entries
Product: [Plasma] plasmashell Reporter: postix <postix>
Component: Calendar widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot: Left: smalles possible calendar. right: Stretched in height.
Screenshot: Left: smalles possible calendar. right: Stretched in height.

Description postix 2024-02-27 11:52:54 UTC
Created attachment 166130 [details]
Screenshot: Left: smalles possible calendar. right: Stretched in height.

SUMMARY

In height stretched calendar has non uniformly aligned entries, which makes it look very weird.


STEPS TO REPRODUCE
1. Open the calendar widget
2. Make it narrow in width
3. Stretch it in height

OBSERVED RESULT
The numbers are no longer centered below the dates.
The dates no longer have uniform distance to each other.
Some dates are above the baseline.

Please see the screenshot with annotations.

SOFTWARE/OS VERSIONS
Operating System: Fedora-KDE-Live-x86_64-Rawhide-20240225.n.0.iso
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.0-rc5
Graphics Platform: Wayland
Graphics Processor: llvmpipe
VirtualBox 7.0 on openSUSE TW
Scaling: 2.0
Comment 1 postix 2024-02-27 11:58:02 UTC
Created attachment 166131 [details]
Screenshot: Left: smalles possible calendar. right: Stretched in height.
Comment 2 postix 2024-02-27 12:19:22 UTC
Seems like the numbers are indeed centered, but the dates look a bit weird.
Comment 3 Nate Graham 2024-02-27 19:52:58 UTC
I'm afraid you can't measure like this and get results that make sense. See https://community.kde.org/Get_Involved/Design/Frequently_Discussed_Topics#Measuring_between_variable-size_UI_elements to learn why. :)