Index: ash/wm/frame_painter.cc |
diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc |
index a4b4c70151c03bb1fc9caec7a3169370a0fd23a8..884cd50ceb2e2338be3d839aa6fb7f51e9ec8037 100644 |
--- a/ash/wm/frame_painter.cc |
+++ b/ash/wm/frame_painter.cc |
@@ -492,8 +492,10 @@ void FramePainter::PaintHeaderContentSeparator(views::NonClientFrameView* view, |
kHeaderContentSeparatorColor); |
} |
-int FramePainter::HeaderContentSeparatorSize() const { |
- return kHeaderContentSeparatorSize; |
+int FramePainter::HeaderHeight() const { |
+ int bottom_y = std::max(size_button_->bounds().bottom(), |
+ close_button_->bounds().bottom()); |
+ return (bottom_y - 1) + kHeaderContentSeparatorSize; |
James Cook
2012/11/20 22:08:41
nit: Consider documenting that the -1 is because t
|
} |
void FramePainter::PaintTitleBar(views::NonClientFrameView* view, |