From f55a20fd3bad952481339d47ff844ad816192f50 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Oct 2018 00:32:21 +0800 Subject: Fix measure system of border. --- src/ui/controls/border_delegate.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/ui/controls/border_delegate.cpp') 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); - } } -- cgit v1.2.3