summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2012-07-02 18:27:31 (GMT)
committerjenglish <jenglish@flightlab.com>2012-07-02 18:27:31 (GMT)
commit022243628900981f92cc595cfefbf7f7b66f51a6 (patch)
tree88ca10f6301a2812a0331651dd287e89aa9ca688 /generic/ttk
parent1c4e68215108b32cdbd6ef93ab1681e5a3f71bc9 (diff)
parent320c10d3d423a300bcab6f28689dbfaa48b1cc02 (diff)
downloadtk-022243628900981f92cc595cfefbf7f7b66f51a6.zip
tk-022243628900981f92cc595cfefbf7f7b66f51a6.tar.gz
tk-022243628900981f92cc595cfefbf7f7b66f51a6.tar.bz2
ttk::treeview('see' method): fix overscroll prevention [Bug 3530288]
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTreeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 32dd183..1ed2742 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -2831,9 +2831,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) {