diff options
author | fvogel <fvogelnew1@free.fr> | 2019-10-27 13:22:04 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-10-27 13:22:04 (GMT) |
commit | af18ad2b6212e9d9eac4972e9ae2c1592cc15aa4 (patch) | |
tree | 9ed7a578480a78f8264657f480203c2612361eff /tests | |
parent | a535db786b4b21ab7aca21a858976e220d5c0bd1 (diff) | |
download | tk-af18ad2b6212e9d9eac4972e9ae2c1592cc15aa4.zip tk-af18ad2b6212e9d9eac4972e9ae2c1592cc15aa4.tar.gz tk-af18ad2b6212e9d9eac4972e9ae2c1592cc15aa4.tar.bz2 |
Fix [caacf1f082]: treeview column resizing not possible in some conditions. This problem was created by my fixing of [ce470f20fd] (ttk::treeview allows dragging the right edge of the rightmost heading). While some of the commits aiming at fixing [ce470f20fd] were correct, some other were not and in fact I believe the right edge of the rightmost heading really should be draggable. This is also how tablelist behaves.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttk/treeview.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ttk/treeview.test b/tests/ttk/treeview.test index 43a6527..c9dcf52 100644 --- a/tests/ttk/treeview.test +++ b/tests/ttk/treeview.test @@ -692,7 +692,7 @@ test treeview-368fa4561e "indicators cannot be clicked on leafs" -setup { destroy .tv } -result {0 0 0} -test treeview-ce470f20fd-1 "dragging further than the right edge of the treeview is forbidden" -setup { +test treeview-ce470f20fd-1 "dragging further than the right edge of the treeview is allowed" -setup { pack [ttk::treeview .tv] .tv heading #0 -text "Drag my right edge -->" update @@ -702,7 +702,7 @@ test treeview-ce470f20fd-1 "dragging further than the right edge of the treeview lappend res [expr {[.tv column #0 -width] > $res}] } -cleanup { destroy .tv -} -result {200 0} +} -result {200 1} proc nostretch {tv} { foreach col [$tv cget -columns] { |