Skip to content

Commit d935204

Browse files
committed
[[ Community Docs ]] Differentiate field and chunk heights
Added explanation that a field's formattedheight includes margins, where a chunk height does not.
1 parent 9e19353 commit d935204

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/dictionary/property/formattedHeight.lcdoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ If you specify an image or player, the <formattedHeight> <property> reports the
3434

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

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

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

0 commit comments

Comments
 (0)