aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-25 17:50:12 +0800
committercrupest <crupest@outlook.com>2018-11-25 17:50:12 +0800
commit5391e781e4682731721c841462904809bc618870 (patch)
treee1315ff02ebdf63b80f2eb9e6a1f43a44a313249 /src/ui/controls
parentabc776a9ea02a564dfe44141e51e4cbc87a7a3a1 (diff)
downloadcru-5391e781e4682731721c841462904809bc618870.tar.gz
cru-5391e781e4682731721c841462904809bc618870.tar.bz2
cru-5391e781e4682731721c841462904809bc618870.zip
Change clip to padding into clip content.
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/scroll_control.cpp2
-rw-r--r--src/ui/controls/text_control.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/scroll_control.cpp b/src/ui/controls/scroll_control.cpp
index 00969ab7..6b6d899c 100644
--- a/src/ui/controls/scroll_control.cpp
+++ b/src/ui/controls/scroll_control.cpp
@@ -9,7 +9,7 @@ namespace cru::ui::controls
{
ScrollControl::ScrollControl(const bool container) : Control(container)
{
- SetClipToPadding(true);
+ SetClipContent(true);
}
ScrollControl::~ScrollControl()
diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp
index c37441b3..d7d6b810 100644
--- a/src/ui/controls/text_control.cpp
+++ b/src/ui/controls/text_control.cpp
@@ -20,7 +20,7 @@ namespace cru::ui::controls
selection_brush_ = UiManager::GetInstance()->GetPredefineResources()->text_control_selection_brush;
- SetClipToPadding(true);
+ SetClipContent(true);
}