Merge branch 'fix-wrong-label-wrap-in-popover' into 'main'

popover: Correctly substract arrow height when measuring popover widget

See merge request GNOME/gtk!4880
This commit is contained in:
Matthias Clasen 2022-07-16 23:19:10 +00:00
commit 648e423cc5

View File

@ -1451,7 +1451,7 @@ gtk_popover_measure (GtkWidget *widget,
GtkCssStyle *style;
GtkBorder shadow_width;
if (for_size >= 0)
if (for_size >= 0 && (POS_IS_VERTICAL (priv->position) == (orientation == GTK_ORIENTATION_HORIZONTAL)))
for_size -= tail_height;
style = gtk_css_node_get_style (gtk_widget_get_css_node (GTK_WIDGET (priv->contents_widget)));