summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-07-08 22:07:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-07-08 22:07:54 (GMT)
commite5bb2baae8dd7b496cc9a06e0b0191510627e14e (patch)
tree6a900ae11219d49f5095d9bfd44a0f052eec133f /generic/ttk
parent3018d78340026597655745f383e8f4c2e4e9505d (diff)
downloadtk-e5bb2baae8dd7b496cc9a06e0b0191510627e14e.zip
tk-e5bb2baae8dd7b496cc9a06e0b0191510627e14e.tar.gz
tk-e5bb2baae8dd7b496cc9a06e0b0191510627e14e.tar.bz2
Fix [031dfcf1dd]: ttk::treeview -anchor does not work with column #0
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTreeview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 358e409..479820a 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1779,7 +1779,7 @@ static void DrawItem(
x+indent, y, colwidth-indent, rowHeight);
if (item->textObj) { displayItem.textObj = item->textObj; }
if (item->imageObj) { displayItem.imageObj = item->imageObj; }
- /* ??? displayItem.anchorObj = 0; <<NOTE-ANCHOR>> */
+ displayItem.anchorObj = tv->tree.column0.anchorObj;
DisplayLayout(tv->tree.itemLayout, &displayItem, state, parcel, d);
x += colwidth;
}
@@ -3320,8 +3320,8 @@ TTK_LAYOUT("Item",
TTK_GROUP("Treeitem.padding", TTK_FILL_BOTH,
TTK_NODE("Treeitem.indicator", TTK_PACK_LEFT)
TTK_NODE("Treeitem.image", TTK_PACK_LEFT)
- TTK_GROUP("Treeitem.focus", TTK_PACK_LEFT,
- TTK_NODE("Treeitem.text", TTK_PACK_LEFT))))
+ TTK_GROUP("Treeitem.focus", TTK_FILL_BOTH,
+ TTK_NODE("Treeitem.text", TTK_FILL_BOTH))))
TTK_LAYOUT("Cell",
TTK_GROUP("Treedata.padding", TTK_FILL_BOTH,