Code: Select all
// MW-2012-02-19: [[ SplitTextAttrs ]] If the textSize is changed, then make sure we
// reset the textHeight to derive from it.
if (which == P_TEXT_SIZE)
fontheight = 0;
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark
Code: Select all
// MW-2012-02-19: [[ SplitTextAttrs ]] If the textSize is changed, then make sure we
// reset the textHeight to derive from it.
if (which == P_TEXT_SIZE)
fontheight = 0;
Note: If you change the field's textSize, LiveCode automatically sets the textHeight to trunc(4/3 * the textSize of field). For example, if the textSize is set to 12, the textHeight is set to 16 by default. If the textSize is set to 14, the textHeight is set to 18. So, if you want to change the textHeight and textSize, set the textSize first, then set the textHeight.
If a field's fixedLineHeight property is false, the textHeight of the field has no effect: in this case, the text height of each line is determined by the size of the largest text in the line, and changing the textHeight doesn't change the spacing of lines.
Code: Select all
set the textSize of control 3 to "30%"
set the textHeight of field 5 to "150%"
set the spaceAbove of line 5 of field 3 to "200%"
I don't really see much of a conflict here.This is one of those cases of 'this is how it has always been' and I can only conjecture on the underlying logic...