diff options
author | Yuqian Yang <crupest@outlook.com> | 2018-09-27 15:01:15 +0000 |
---|---|---|
committer | Yuqian Yang <crupest@outlook.com> | 2018-09-27 15:01:15 +0000 |
commit | b0b5a481c9b0460f275887b15e8edecc34e99186 (patch) | |
tree | 914b66de1428ddfa55a190495e7e24cbb5f8b8c2 /src/ui/controls/text_control.cpp | |
parent | 1fdc86fe5f8d18fdc8927f663aaeaa0b6b8f1e9b (diff) | |
parent | eab8d69ccac6f7b306561a49e9c1f8fda21376d2 (diff) | |
download | cru-b0b5a481c9b0460f275887b15e8edecc34e99186.tar.gz cru-b0b5a481c9b0460f275887b15e8edecc34e99186.tar.bz2 cru-b0b5a481c9b0460f275887b15e8edecc34e99186.zip |
Merge branch '5-border' into 'master'
Resolve "Develop border."
Closes #5
See merge request crupest/CruUI!7
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r-- | src/ui/controls/text_control.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |