summaryrefslogtreecommitdiffstats
path: root/views/controls/separator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/separator.cc')
-rw-r--r--views/controls/separator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/separator.cc b/views/controls/separator.cc
index 8c9edce..dad3578 100644
--- a/views/controls/separator.cc
+++ b/views/controls/separator.cc
@@ -73,7 +73,8 @@ gfx::Size Separator::GetPreferredSize() {
void Separator::Layout() {
if (native_wrapper_) {
- native_wrapper_->SetBounds(0, 0, width(), height());
+ int y = static_cast<int>((height() - kSeparatorSize) / 2);
+ native_wrapper_->SetBounds(0, y, width(), kSeparatorSize);
native_wrapper_->Layout();
}
}