diff --git a/haxework/gui/TextView.hx b/haxework/gui/TextView.hx index 9a7a48a..389b4ec 100755 --- a/haxework/gui/TextView.hx +++ b/haxework/gui/TextView.hx @@ -148,7 +148,11 @@ class TextView extends SpriteView implements ITextView { if (t != null) textField.text = t; textField.setTextFormat(textFormat); if (contentSize && !Std.is(skin, ISize)) { - #if html5 textField.height = textField.textHeight; #end + #if html5 + var h = textField.textHeight; + if (h > textFormat.size * 1.5) h = h / 2; + textField.height = h; + #end width = textField.width + paddings * 2; height = textField.height + paddings * 2; textField.x = paddings;