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

Unified Diff: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc

Issue 405323002: [Win Aero] Correctly set the minimum window size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add outer bounds test. Actually fix this. Created 6 years, 4 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
Index: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
diff --git a/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
index 8c6b0697847f6c1c0209d710dffa1959979c3fe1..042fcc00554083013c2e139a7419e9926cac644f 100644
--- a/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
+++ b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
@@ -36,12 +36,12 @@ bool AppWindowDesktopWindowTreeHostWin::GetClientAreaInsets(
// This tells Windows that most of the window is a client area, meaning Chrome
// will draw it. Windows still fills in the glass bits because of the
// DwmExtendFrameIntoClientArea call in |UpdateDWMFrame|.
- // The 1 pixel edge is left on the sides and bottom as without this
+ // Without this 1 pixel offset on the right and bottom:
// * windows paint in a more standard way, and
// * get weird black bars at the top when maximized in multiple monitor
// configurations.
int border_thickness = 1;
- insets->Set(0, border_thickness, border_thickness, border_thickness);
+ insets->Set(0, 0, border_thickness, border_thickness);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698