Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Unified Diff: ui/views/window/dialog_frame_view.cc

Issue 11975038: Implement rough new Views task manager style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use 'Chrome Style' TextButtons instead. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_frame_view.cc
diff --git a/ui/views/window/dialog_frame_view.cc b/ui/views/window/dialog_frame_view.cc
index eed14d74b59b3d00c7d4a5ac3594a4869199f65d..00435471b9d9bf7535fe5499a8cb36e941758a1d 100644
--- a/ui/views/window/dialog_frame_view.cc
+++ b/ui/views/window/dialog_frame_view.cc
@@ -114,10 +114,10 @@ void DialogFrameView::Layout() {
gfx::Rect bounds = GetLocalBounds();
bounds.Inset(border()->GetInsets());
// Small additional insets yield the desired 10px visual close button insets.
- bounds.Inset(0, 2, 1, 0);
- close_->SetPosition(gfx::Point(bounds.right() - close_->width(), bounds.y()));
+ bounds.Inset(0, 2, close_->width() + 1, 0);
+ close_->SetPosition(gfx::Point(bounds.right(), bounds.y()));
// Small additional insets yield the desired 20px visual title label insets.
- bounds.Inset(2 * kSpacing - 1, kSpacing, close_->width(), 0);
+ bounds.Inset(2 * kSpacing - 1, kSpacing, 0, 0);
bounds.set_height(title_->font().GetHeight());
title_->SetBoundsRect(bounds);
}
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698