forked from AuroraMiddleware/gtk
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:
commit
648e423cc5
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user