Skip to content

Commit 7dc5996

Browse files
committed
Merge pull request livecode#3901 from jacquegay/patch-2
[[ Community Docs ]] Differentiate field and chunk widths
2 parents 2050463 + e5f62b9 commit 7dc5996

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/dictionary/property/formattedWidth.lcdoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ If you specify a field, the <formattedWidth> reports the width required by the <
3434

3535
If you specify an object in a group, the value reported is the <formattedWidth> that <object> requires for the <current card>, so if you want to get the <formattedWidth> of a <field(object)|field's> text on a certain <card>, you must go to that <card> first.
3636

37-
The <formattedWidth> of a <chunk> in a <field(keyword)> is the amount of horizontal space that portion of the <field(object)|field's> text requires, taking line breaks into account.
37+
The <formattedWidth> of a <field(keyword)> is the amount of horizontal space the <field(object)|field's> text requires, taking line breaks into account and including left and right margins.
38+
39+
The <formattedWidth> of a <chunk> in a <field(keyword)> is the amount of horizontal space that portion of the <field(object)|field's> text requires, taking line breaks into account but disregarding margins.
3840

3941
References: dontWrap (property), visible (property), thumbSize (property), margins (property), integer (keyword), image (keyword), field (keyword), card (keyword), revChangeWindowSize (command), group (command), textHeightSum (function), field (object), object (object), stack (object), property (glossary), current card (glossary), chunk (glossary)
4042

0 commit comments

Comments
 (0)