From e8589550140d20b675fa7736441d7cdd1daee4d7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 20 Nov 2018 21:02:49 +0800 Subject: Add clip to padding. --- 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 f7f88d4e..c37441b3 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -19,6 +19,8 @@ namespace cru::ui::controls brush_ = init_brush; selection_brush_ = UiManager::GetInstance()->GetPredefineResources()->text_control_selection_brush; + + SetClipToPadding(true); } -- cgit v1.2.3