GNOME Bugzilla – Bug 327113
Time is displayed vertically in a wide vertical top-right panel
Last modified: 2006-01-22 15:38:00 UTC
Please describe the problem: I have a vertical panel placed in the top-right corner of my desktop. The panel is 48 pixels wide. The clock is displayed rotated, so the text is vertical instead of horisontal. It would be nice if the text only was rotated if there wasn't enough room to display it horisontally, as it is much easier to read. If that is complicated, perhaps the text could only be rotated if the panel has the preferences checkbox "Expand" checked (I expect it is usually checke for panels used for "menubar"-like things and not checked for panels used more "buttony"-like). I've looked at the code, but unfortunately I couldn't figure out how to do any of these two things. Instead I've made a crude and ugly patch, that only rotates the text for panels with size less than 48. It works for me, but it sure is an ugly hack. Steps to reproduce: 1. Create a panel with orientation right (or left). 2. Make the panel wide (say, 48 pixels). 2. Add a clock-applet to the panel. Actual results: The text is displayed vertically. It looks rather silly. Expected results: The text displayed horisontally, when there is room enough. Does this happen every time? Yes. Other information:
Created attachment 57420 [details] Actual panel This is what the panel looks like.
Created attachment 57421 [details] Expected panel This is how I would expect the panel to look.
Created attachment 57422 [details] [review] Ugly hack, only rotates for small sizes (<48) Not to be used, just what I could come up with, when I couldn't figure out how to either determine whether the text would fit horisontally or whether the panel has its Expand checkbox marked.
Unfortunately the hack is too ugly so it won't get in :-) I'll try to fix it in a clean way. Btw, this is a dup. *** This bug has been marked as a duplicate of 318377 ***