diff options
-rw-r--r-- | widgets/table/e-tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 27c7e9ae1b..0a13f64c50 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -772,17 +772,17 @@ tree_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc, g_object_set_property (G_OBJECT (e_tree->priv->header), "width", val); g_free (val); + if (e_tree->priv->reflow_idle_id) + g_source_remove(e_tree->priv->reflow_idle_id); + tree_canvas_reflow_idle(e_tree); + if (path) e_tree_get_cell_geometry (e_tree, e_tree_row_of_node(e_tree, path), 0, &x, &y, &w, &h); else y = h = 0; - if (y < adj->value || y + h > adj->value + adj->page_size) + if (y < adj->value || y + h > adj->value + adj->page_size) gtk_adjustment_set_value(adj, CLAMP(y - adj->page_size / 2, adj->lower, adj->upper - adj->page_size)); - - if (e_tree->priv->reflow_idle_id) - g_source_remove(e_tree->priv->reflow_idle_id); - tree_canvas_reflow_idle(e_tree); } static void |