GNOME Bugzilla – Bug 325063
inconsistent layout decisions (whether to use 1 or 2 lines) for applet initialization and update
Last modified: 2015-03-24 13:00:56 UTC
Please describe the problem: On my system, a clock applet displays the date and time in one line for a panel size up to 48 pixels and in two lines for a for a panel size of 49+ pixels. My panel size is set to 48 pixels, so the clock applet displays one line. However, if I change e.g. the hour format in the clock applet preferences from 12 to 24 hours, the clock applet will immediately use two lines. Similarly, if I increase the panel size until the clock applet uses two lines and then decrease it again, the clock applet will still use two lines for any panel size between 37 and 48. In both cases, this display property is not sticky: the clock applet will again use one line if gnome-panel is restarted. Steps to reproduce: 1. create a horizontal panel with a size between 37 and 48 pixels (the problematic sizes probably depend on the default font sizes on your system) 2. add a clock applet to this panel 3. change hour format from 12 to 24 hours or vice versa Actual results: the display immediatly uses two lines instead of one, when the hour format is changed Expected results: no change in the text layout. whether one or two lines are used for date and time display should depend on the same panel sizes during applet initialization and event-triggered update. Does this happen every time? yes Other information: using the Gnome packages shipped with Ubuntu 5.10 "Breezy Badger"
Created attachment 56441 [details] two clock applets on the same panel with different layouts Cf attached screenshot: two clock applets where added to a panel of size 48 pixels. Both were displayed within one line. Then I selected 24 hour format for the left applet which caused a change of the applet's layout.
Funny :-)
Should be fixed in HEAD.