forked from AuroraMiddleware/gtk
popover: Don't recalculate position if unmapped
This commit is contained in:
parent
5907ff694f
commit
f598836d6c
@ -1175,7 +1175,7 @@ gtk_popover_update_position (GtkPopover *popover)
|
||||
gint i, j;
|
||||
gint best;
|
||||
|
||||
if (!priv->window)
|
||||
if (!priv->window || !gtk_widget_get_mapped (widget))
|
||||
return;
|
||||
|
||||
gtk_widget_get_preferred_size (widget, NULL, &req);
|
||||
|
Loading…
Reference in New Issue
Block a user