summaryrefslogtreecommitdiffstats
path: root/tests/scrollbar.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-25 19:16:37 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-25 19:16:37 (GMT)
commit1ec5f8b0006457583d55090fa81567395172f48f (patch)
tree82d98b29a6d62e2f0c23c4f9f29fddb868f1b3d1 /tests/scrollbar.test
parent1d75d1e36bbb97c1559ef53ff41acfca8088274a (diff)
parentf63bb1144e5843b991583fa4768e4c6eb67f51d4 (diff)
downloadtk-1ec5f8b0006457583d55090fa81567395172f48f.zip
tk-1ec5f8b0006457583d55090fa81567395172f48f.tar.gz
tk-1ec5f8b0006457583d55090fa81567395172f48f.tar.bz2
Merge bugfix branch bug-f792b457eb (scrollbar-3.26, 3.27, 3.28, 3.35 tests fail on macOS)
Diffstat (limited to 'tests/scrollbar.test')
-rw-r--r--tests/scrollbar.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test
index e4fdc0e..6f00e78 100644
--- a/tests/scrollbar.test
+++ b/tests/scrollbar.test
@@ -283,7 +283,7 @@ test scrollbar-3.41 {ScrollbarWidgetCmd procedure, "fraction" option} {
if {[testConstraint testmetrics]} {
place configure .t.s -width [expr 2*[testmetrics cxhscroll .t.s]+1]
} else {
- place configure .t.s -width [expr [winfo reqwidth .t.s] - 4]
+ place configure .t.s -width [expr [winfo height .t.s] - 2*([.t.s cget -highlightthickness] + [.t.s cget -bd] + 1)]
}
update
test scrollbar-3.42 {ScrollbarWidgetCmd procedure, "fraction" option} {