popover: Queue a resize when position changes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 01:25:24 +0000 (20:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 01:27:01 +0000 (20:27 -0500)
At least with an arrow, changing the position
requires a resize

gtk/gtkpopover.c

index 3d3325a09ef4ad059f1d388f42a1ab00ba3aaf51..6d10169073685cead5ebf12c5ee883435d528eb5 100644 (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);
 }