summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-13 18:32:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-13 18:32:37 (GMT)
commit02d498ccf2b050f515631e77d628b1cb683e7be3 (patch)
tree5fe4566368cb1cf14d205125883006d838532cd4 /doc
parent645e704d85418ea761b72d4fb0e275219ba2183f (diff)
parent5f94bbe9d7e1f1a626620b10a86a830b6a70e887 (diff)
downloadtk-02d498ccf2b050f515631e77d628b1cb683e7be3.zip
tk-02d498ccf2b050f515631e77d628b1cb683e7be3.tar.gz
tk-02d498ccf2b050f515631e77d628b1cb683e7be3.tar.bz2
Fix [bb52855781]: ttk treeview tests not robust against display scaling
Diffstat (limited to 'doc')
-rw-r--r--doc/ttk_treeview.n16
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/ttk_treeview.n b/doc/ttk_treeview.n
index ef89b03..b10e0f8 100644
--- a/doc/ttk_treeview.n
+++ b/doc/ttk_treeview.n
@@ -211,6 +211,8 @@ Use \fIpathname heading #0\fR to configure the tree column heading.
Returns a description of the specified \fIcomponent\fR
under the point given by \fIx\fR and \fIy\fR,
or the empty string if no such \fIcomponent\fR is present at that position.
+The values \fIx\fR and \fIy\fR may have any of the forms acceptable to
+\fBTk_GetPixels\fR.
The following subcommands are supported:
.RS
.TP
@@ -507,14 +509,20 @@ are:
.br
\fB\-indent\fP \fIamount\fP
.RS
-Specifies how many pixels items are indented from their parents. Defaults to 20.
+Specifies how far items are indented from their parents. Defaults to 20 pixels.
+The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
.RE
.br
\fB\-rowheight\fP \fIamount\fP
.RS
-The \fB\-rowheight\fP value is not corrected by the \fBtk scaling\fP
-value or by the configured font size. It defaults to 20 pixels. Make
-sure that the \fB\-rowheight\fP is large enough to contain any images.
+This is the standard height for an item. Defaults to 20 pixels.
+The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
+If \fB\-rowheight\fP is not set by the style, it is set by measuring an
+item and a cell layout with the style's settings.
+This thus picks up the font and
+any focus ring or padding from the theme's layout.
+The \fB\-rowheight\fP may need to be set to make sure that a row
+is large enough to contain any images.
.PP
To adjust the \fB\-rowheight\fP for the Treeview style, use the following code
after \fBtk scaling\fP has been applied.