popover: Queue a resize when position changes

At least with an arrow, changing the position
requires a resize
This commit is contained in:
Matthias Clasen 2021-02-13 20:25:24 -05:00
parent bd877ccf06
commit b3a055a9b7

View File

@ -2014,6 +2014,8 @@ gtk_popover_set_position (GtkPopover *popover,
g_object_notify_by_pspec (G_OBJECT (popover), properties[PROP_POSITION]);
gtk_widget_queue_resize (GTK_WIDGET (popover));
if (gtk_widget_is_visible (GTK_WIDGET (popover)))
present_popup (popover);
}