aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/border_delegate.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-02 00:32:21 +0800
committercrupest <crupest@outlook.com>2018-10-02 00:32:21 +0800
commitf55a20fd3bad952481339d47ff844ad816192f50 (patch)
treef06fef6ae60052ada11e41650b443565eeb5447e /src/ui/controls/border_delegate.cpp
parent3b7e3d0ca26b526c8c4e6fc335085ac28d63bbab (diff)
downloadcru-f55a20fd3bad952481339d47ff844ad816192f50.tar.gz
cru-f55a20fd3bad952481339d47ff844ad816192f50.tar.bz2
cru-f55a20fd3bad952481339d47ff844ad816192f50.zip
Fix measure system of border.
Diffstat (limited to 'src/ui/controls/border_delegate.cpp')
-rw-r--r--src/ui/controls/border_delegate.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ui/controls/border_delegate.cpp b/src/ui/controls/border_delegate.cpp
index ec7ba437..0b460997 100644
--- a/src/ui/controls/border_delegate.cpp
+++ b/src/ui/controls/border_delegate.cpp
@@ -82,16 +82,4 @@ namespace cru::ui::controls
border_property_->GetStrokeStyle().Get()
);
}
-
- Size BorderDelegate::GetBorderSize() const
- {
- const auto width = border_property_->GetWidth();
- return Size(width * 2, width * 2);
- }
-
- Rect BorderDelegate::CoerceLayoutRect(const Rect& rect) const
- {
- const auto width = border_property_->GetWidth();
- return Rect(rect.left + width, rect.top + width, rect.width - width * 2, rect.height - width * 2);
- }
}