date string overflows narrow vertical panel
Submitted by Martin Pitt
Assigned to Xfce-Goodies Maintainers
Description
Created attachment 3149 screenshot
If you select the "time and date" format and then switch to a vertical panel, the date gets cropped (see screenshot). The "proper" fix is for the user to change the plugin configuration to "time only" or to widen the panel so that the date string will fit.
However, in a customer project of ours we had the request to make vertical panels "just work" with any size, without the need to reconfigure the plugin.
I wrote a patch which hides the date whenever there is too little space to display it. Arguably this could be solved in different manners, like automatically changing the layout configuration to "time only", but then you would have to manually set it back on reconfiguring the panel, but that's how we wanted to have it.
Attaching the patch for the record and for posterity. Please feel free to just close this if you don't want this and want to keep the current behaviour.
Thanks,
Martin