range: Always queue an allocate if the adjustment changed

The slider gets its new size in size-allocate, so we have to do this
even if the range has no origin.
This commit is contained in:
Timm Bäder 2018-01-30 10:13:51 +01:00
parent 6fd6ff2ea1
commit c8a936cdcc

View File

@ -2805,9 +2805,7 @@ gtk_range_calc_slider (GtkRange *range)
gtk_widget_set_visible (priv->slider_widget, visible);
if (priv->has_origin)
gtk_widget_queue_allocate (priv->trough_widget);
gtk_widget_queue_allocate (priv->trough_widget);
gtk_range_update_mouse_location (range);
}