summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-09-18 17:33:02 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-09-18 17:33:02 (GMT)
commit9483e2ad64759b1ee91a32ce91e1a9c89cb626f4 (patch)
treef76f92057dd263e52f939a8c0d938e9095e1c49c /generic
parent250217d618d22baf0222a0f7fa837f0aab916608 (diff)
downloadtk-9483e2ad64759b1ee91a32ce91e1a9c89cb626f4.zip
tk-9483e2ad64759b1ee91a32ce91e1a9c89cb626f4.tar.gz
tk-9483e2ad64759b1ee91a32ce91e1a9c89cb626f4.tar.bz2
Fix [cc6c711c1e]: treeview layout issues (patch from Brad Lanam)
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkTreeview.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 3674ae5..fcd807c 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1232,9 +1232,10 @@ static int ConfigureColumn(
if (mask & GEOMETRY_CHANGED) {
if (!Tk_IsMapped(tv->core.tkwin)) {
TtkResizeWidget(&tv->core);
- }
- RecomputeSlack(tv);
- ResizeColumns(tv, TreeWidth(tv));
+ } else {
+ RecomputeSlack(tv);
+ ResizeColumns(tv, TreeWidth(tv));
+ }
}
TtkRedisplayWidget(&tv->core);