Bug 166738 - with few items in the panel binary and digital clocks grow too big
Summary: with few items in the panel binary and digital clocks grow too big
Status: RESOLVED DUPLICATE of bug 164317
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-clock (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-16 16:08 UTC by Maciej Pilichowski
Modified: 2008-07-16 19:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***