aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
committerYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
commitb0057dc911f96258c7280b89c8f4da828ecc283c (patch)
treeccdc237b84423c9564458df3fae036f08815dda6 /src/ui/controls/text_control.cpp
parent7e870dd16e2f5b41fa6c6f687723aaa50c16274d (diff)
parent2261a4bc348a6017a0f31233f969bdf31ae35679 (diff)
downloadcru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.gz
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.bz2
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.zip
Merge branch '13-debug-layout' into 'master'
Resolve "Add debug layout visual effect." Closes #13 See merge request crupest/CruUI!13
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r--src/ui/controls/text_control.cpp3
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();
}