diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkscrolledwindow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index bba19ed8e0..0918d72315 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1786,10 +1786,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; } } } |