After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662172 - expanded view of clock applet goes outside of the screen when on extreme right
expanded view of clock applet goes outside of the screen when on extreme right
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-19 09:03 UTC by Antonio Ospite
Modified: 2011-11-26 09:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
expanded view of clock applet goes outside of the screen when on extreme right (180.39 KB, image/png)
2011-10-19 09:03 UTC, Antonio Ospite
Details

Description Antonio Ospite 2011-10-19 09:03:41 UTC
Created attachment 199406 [details]
expanded view of clock applet goes outside of the screen when on extreme right

Hi,

gnome3 in fallback mode: when I put the clock applet on the extreme right of the screen I get the expanded calendar view rendered partly outside of the screen.

I am attaching a screenshot to illustrate the problem, look at the year and at the location edit button.

Thanks,
   Antonio Ospite
   http://ao2.it
Comment 1 Joachim Breitner 2011-11-13 21:28:20 UTC
This is code from link-monitor-applet, which has it's own tooltip class, but seems to be inspired by GtkTooltip:

 382     /*
 383      * The following block is not part of GTK+ and has been added to
 384      * make sure that the tooltip will not go beyond the screen edges
 385      * (horizontally).
 386      */
 387     screen_width = gdk_screen_get_width(screen);
 388     if (x < 0 || x + w > screen_width)
 389       {
 390         x = 0;
 391         gtk_widget_set_size_request(selfp->window, MIN(w, screen_width), -1);
 392       }

(http://git.nomeata.de/?p=link-monitor-applet.git;a=blob;f=src/lm-tooltips.gob;h=4c373f87568a55dc58895eb15008bde58ee0cffc;hb=refs/heads/gnome3)

So maybe some similar code should be added to GtkTooltip (if that is really what is used in the clock applet, I did not check).
Comment 2 Antonio Ospite 2011-11-26 09:57:19 UTC
The issue seems to be solved in gnome-panel 3.2.x

Thanks,
   Antonio