From b1c3c69a38ec645fc5c7467336e453e96999b5fd Mon Sep 17 00:00:00 2001 From: luboslenco Date: Tue, 17 May 2022 11:28:27 +0200 Subject: [PATCH] Fix text update for copyable ui box --- Sources/arm/ui/UIBox.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/arm/ui/UIBox.hx b/Sources/arm/ui/UIBox.hx index 0d062c9c..c576d429 100644 --- a/Sources/arm/ui/UIBox.hx +++ b/Sources/arm/ui/UIBox.hx @@ -63,8 +63,10 @@ class UIBox { if (ui.window(hwnd, left, top, mw, mh, draggable)) { ui._y += 10; if (ui.tab(Id.handle(), boxTitle)) { + var htext = Id.handle(); + htext.text = boxText; copyable ? - Ext.textArea(ui, Id.handle({ text: boxText }), false) : + Ext.textArea(ui, htext, false) : ui.text(boxText); ui.endElement();