From 011f3123c085bb3512cc68548ad9246b0a31debf Mon Sep 17 00:00:00 2001 From: jenglish Date: Mon, 2 Jul 2012 18:22:26 +0000 Subject: ttk::treeview('see' method): fix overscroll prevention [Bug 3530288] --- generic/ttk/ttkTreeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 6b9042f..862c7f6 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -2832,9 +2832,9 @@ static int TreeviewSeeCommand( TtkRedisplayWidget(&tv->core); } } + tv->tree.yscroll.total = CountRows(tv->tree.root) - 1; /* Make sure item is visible: - * @@@ DOUBLE-CHECK THIS: */ rowNumber = RowNumber(tv, item); if (rowNumber < tv->tree.yscroll.first) { -- cgit v0.12