summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-29 08:00:36 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-29 08:00:36 (GMT)
commitea0200f3f7bb5e9837114f2a9f674a9ef330ec2b (patch)
tree4ab6f3cf1dec9624345723f45496201ceb97301b /unix
parent65ba89c907a5b7c966d6ba5904daf97f4e39d199 (diff)
downloadtk-ea0200f3f7bb5e9837114f2a9f674a9ef330ec2b.zip
tk-ea0200f3f7bb5e9837114f2a9f674a9ef330ec2b.tar.gz
tk-ea0200f3f7bb5e9837114f2a9f674a9ef330ec2b.tar.bz2
Once the menu geometry is correctly computed there is no need anymore for questionable hacks in menu width calculation when displaying it
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixMenu.c b/unix/tkUnixMenu.c
index bc1bd2e..acee61f 100644
--- a/unix/tkUnixMenu.c
+++ b/unix/tkUnixMenu.c
@@ -1718,7 +1718,7 @@ TkpComputeStandardMenuGeometry(
menuPtr->entries[j]->entryFlags |= ENTRY_LAST_COLUMN;
}
windowWidth = x + indicatorSpace + labelWidth + accelWidth
- + 2 * activeBorderWidth + 2 * borderWidth;
+ + 2 * activeBorderWidth + borderWidth;
windowHeight += borderWidth;