1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
From: Sergei Golovan
Subject: Patch fixes incorrect padding in a tabset
(left and top padding double) because of incorrectly
calculated cavity width and height.
Date: Tue, 01 Jul 2025 10:39:07 +0300
Forwarded: yes
Bug: https://sourceforge.net/p/blt/patches/45/
--- a/src/bltTabset.c
+++ b/src/bltTabset.c
@@ -2471,6 +2471,8 @@
cavityWidth = Tk_Width(parent) - (2 * pad);
cavityHeight = Tk_Height(parent) - (y + pad);
}
+ cavityWidth -= PADDING(tabPtr->padX);
+ cavityHeight -= PADDING(tabPtr->padY);
if (cavityWidth < 1) {
cavityWidth = 1;
}
|