diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 2f2b802f02..884e37747b 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1787,10 +1787,10 @@ gtk_scrolled_window_measure (GtkCssGadget *gadget, natural_req.height = MAX (natural_req.height, priv->min_content_height); extra_height = -1; } - else if (policy_may_be_visible (priv->vscrollbar_policy) && !priv->use_indicators) + else if (policy_may_be_visible (priv->hscrollbar_policy) && !priv->use_indicators) { - minimum_req.height += vscrollbar_requisition.height; - natural_req.height += vscrollbar_requisition.height; + minimum_req.height += hscrollbar_requisition.height; + natural_req.height += hscrollbar_requisition.height; } } }