Bug 166738

Summary: with few items in the panel binary and digital clocks grow too big
Product: [Plasma] plasma4 Reporter: Maciej Pilichowski <bluedzins>
Component: widget-clockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: georgi.r.ivanov
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Maciej Pilichowski 2008-07-16 16:08:58 UTC
Version:            (using Devel)
Installed from:    Compiled sources

with few items in the panel binary and digital clocks grow too big

Bug found by Georgi Ivanov, easiest way to reproduce it is removing taskbar from the panel. Digital/binary clock all of the sudden is so hungry it takes all left space (analog clock behaves ok).
Comment 1 Jonathan Harper 2008-07-16 17:44:11 UTC
It seems that part of the problem relates to the clock not being of fixed size. Since it grows with the panel growing, it occupies any available space, horizontally or vertically. This could possibly be fixed by adding an option for font size to the widget--perhaps a checkbox enabling font size adjustment. Left unchecked, the widget would continue to dynamically scale the time to fill available space.
Comment 2 Maciej Pilichowski 2008-07-16 18:31:01 UTC
> Left unchecked, the widget would continue to dynamically scale the time to
> fill available space.

Let's assume it is a horizontal panel, 1600x40 pixels, you drop digital clock, it will use 40y pixels, that's ok, but what it needs 1600x pixels for?

It should fill the height, calculate _the needed_ width and then use it.
Comment 3 zOOm_ER 2008-07-16 18:33:38 UTC
>Let's assume it is a horizontal panel, 1600x40 pixels, you drop digital clock, it will use 40y pixels, that's ok, but what it needs 1600x pixels for?

>It should fill the height, calculate _the needed_ width and then use it. 

and if it is vertical panel, It should fill the WIDTH, calculate _the needed_ HEIGHT and then use it!
Comment 4 Aaron J. Seigo 2008-07-16 19:59:08 UTC

*** This bug has been marked as a duplicate of 164317 ***