diff options
author | crupest <crupest@outlook.com> | 2018-10-06 23:10:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-06 23:10:32 +0800 |
commit | beb6cfa6b3492f5a9d89ba99c03358c22598e7aa (patch) | |
tree | 5a32e5ab38f9c1273640cce62912f58bdeca5d8e /src/ui/controls/text_control.cpp | |
parent | 7e870dd16e2f5b41fa6c6f687723aaa50c16274d (diff) | |
download | cru-beb6cfa6b3492f5a9d89ba99c03358c22598e7aa.tar.gz cru-beb6cfa6b3492f5a9d89ba99c03358c22598e7aa.tar.bz2 cru-beb6cfa6b3492f5a9d89ba99c03358c22598e7aa.zip |
Fix all Relayout to InvalidateLayout.
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r-- | src/ui/controls/text_control.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index da0113f3..ee5b253d 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -229,8 +229,7 @@ namespace cru::ui::controls void TextControl::OnTextChangedCore(const String& old_text, const String& new_text) { RecreateTextLayout(); - if (const auto window = GetWindow()) - window->Relayout(); + InvalidateLayout(); Repaint(); } |