summaryrefslogtreecommitdiffstats
path: root/generic
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)
commitafe14eb43d4dbd139287219224cb177b9347838c (patch)
tree88ca10f6301a2812a0331651dd287e89aa9ca688 /generic
parent178102452144aacf3fcfef787f8db7dc588d9000 (diff)
parent011f3123c085bb3512cc68548ad9246b0a31debf (diff)
downloadtk-afe14eb43d4dbd139287219224cb177b9347838c.zip
tk-afe14eb43d4dbd139287219224cb177b9347838c.tar.gz
tk-afe14eb43d4dbd139287219224cb177b9347838c.tar.bz2
ttk::treeview('see' method): fix overscroll prevention [Bug 3530288]
Diffstat (limited to 'generic')
-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) {