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

Unified Diff: chrome/browser/views/frame/opaque_non_client_view.cc

Issue 10896: Re-do the way browser windows are shown:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
Index: chrome/browser/views/frame/opaque_non_client_view.cc
===================================================================
--- chrome/browser/views/frame/opaque_non_client_view.cc (revision 5374)
+++ chrome/browser/views/frame/opaque_non_client_view.cc (working copy)
@@ -467,7 +467,8 @@
int tabstrip_width = minimize_button_->x() - tabstrip_x;
if (frame_->IsMaximized())
tabstrip_width -= kNewTabIconWindowControlsSpacing;
- return gfx::Rect(tabstrip_x, 0, tabstrip_width, tabstrip_height);
+ return gfx::Rect(tabstrip_x, 0, std::max(0, tabstrip_width),
+ tabstrip_height);
}
void OpaqueNonClientView::UpdateWindowIcon() {

Powered by Google App Engine
This is Rietveld 408576698