diff options
author | fvogel <fvogelnew1@free.fr> | 2019-05-08 10:14:46 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-05-08 10:14:46 (GMT) |
commit | 3f9a6cdf9f72f70de3975b8dadc0680feeb90d00 (patch) | |
tree | f5733c014c27bafbf79c186d1cb34b6e7c19b533 /generic/ttk | |
parent | ab2a29422052037b0344d50033fe0b16676aa9b4 (diff) | |
download | tk-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.c | 3 |
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); |