summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-05-08 10:14:46 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-05-08 10:14:46 (GMT)
commit3f9a6cdf9f72f70de3975b8dadc0680feeb90d00 (patch)
treef5733c014c27bafbf79c186d1cb34b6e7c19b533 /generic/ttk
parentab2a29422052037b0344d50033fe0b16676aa9b4 (diff)
downloadtk-3f9a6cdf9f72f70de3975b8dadc0680feeb90d00.zip
tk-3f9a6cdf9f72f70de3975b8dadc0680feeb90d00.tar.gz
tk-3f9a6cdf9f72f70de3975b8dadc0680feeb90d00.tar.bz2
When changing the -stretch value for a column, columns size must be recomputed before the treeview is redisplayed (at idle time)
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTreeview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index ec85380..7bed8e0 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -282,7 +282,7 @@ static Tk_OptionSpec ColumnOptionSpecs[] = {
0,0,0 },
{TK_OPTION_BOOLEAN, "-stretch", "stretch", "Stretch",
"1", -1, Tk_Offset(TreeColumn,stretch),
- 0,0,0 },
+ 0,0,GEOMETRY_CHANGED },
{TK_OPTION_ANCHOR, "-anchor", "anchor", "Anchor",
"w", Tk_Offset(TreeColumn,anchorObj), -1, /* <<NOTE-ANCHOR>> */
0,0,0 },
@@ -1234,6 +1234,7 @@ static int ConfigureColumn(
TtkResizeWidget(&tv->core);
}
RecomputeSlack(tv);
+ ResizeColumns(tv, TreeWidth(tv));
}
TtkRedisplayWidget(&tv->core);