From eab8d69ccac6f7b306561a49e9c1f8fda21376d2 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 27 Sep 2018 22:53:54 +0800 Subject: Create Border. Make text control relayout when text changed. --- src/ui/controls/text_control.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/controls/text_control.cpp') diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 845b090a..692c4451 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -267,6 +267,8 @@ namespace cru::ui::controls void TextControl::OnTextChangedCore(const String& old_text, const String& new_text) { RecreateTextLayout(); + if (const auto window = GetWindow()) + window->Relayout(); Repaint(); } -- cgit v1.2.3