diff --git a/haxe/ui/backend/TextInputImpl.hx b/haxe/ui/backend/TextInputImpl.hx index 2306c19..5d60980 100644 --- a/haxe/ui/backend/TextInputImpl.hx +++ b/haxe/ui/backend/TextInputImpl.hx @@ -320,6 +320,7 @@ class TextInputImpl extends TextDisplayImpl { div.style.lineHeight = element.style.lineHeight; if ((element is TextAreaElement)) { div.style.wordBreak = element.style.wordBreak; + div.style.font = Browser.window.getComputedStyle(element).font; } if (autoWidth == false) { div.style.width = (_width > 0) ? '${HtmlUtils.px(_width)}' : "";