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 779341 - Popover is clipped when setting point to near top of screen
Popover is clipped when setting point to near top of screen
Status: RESOLVED DUPLICATE of bug 768256
Product: gtk+
Classification: Platform
Component: Widget: GtkPopover
3.22.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-02-27 23:59 UTC by Gerald Nunn
Modified: 2017-09-13 21:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gerald Nunn 2017-02-27 23:59:43 UTC
I use a popover has a context menu in Terminix. When a user right clicks the terminal, the popover is shown at the position clicked using gtk_popover_set_pointing_to. 

Under Wayland when the terminal is positioned near the top of the monitor and the window size is smaller then the context menu, the popover gets positioned on the right such that it goes past the top of the screen. My expectation is that the popover would be positioned under the rect specified in gtk_popover_set_pointing_to so that the popover remains completely visible.

Please see https://github.com/gnunn1/terminix/issues/805 for a picture of the issue. I can reproduce it on my system as follows:

1. In Terminix go to Preferences | Appearance and set the "Terminal title bar" option to None to force it to use a larger context menu

2. Drag the Terminix near the top of the screen and then set the height of the window relatively low, say five rows in the terminal

3. Right click the terminal at the top, the popover will be clipped at the top of the monitor.
Comment 1 Daniel Boles 2017-09-13 21:37:17 UTC

*** This bug has been marked as a duplicate of bug 768256 ***