diff options
author | crupest <crupest@outlook.com> | 2018-11-20 21:02:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-20 21:03:07 +0800 |
commit | e8589550140d20b675fa7736441d7cdd1daee4d7 (patch) | |
tree | 50b61f34dd63e235a6c89b84511f3910b566af00 /src/ui/controls/text_control.cpp | |
parent | 30333294fcd5917a9f3572f0c4c6dfc2ec429a3c (diff) | |
download | cru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.gz cru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.bz2 cru-e8589550140d20b675fa7736441d7cdd1daee4d7.zip |
Add clip to padding.
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 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); } |