File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1164,8 +1164,10 @@ gfx::Rect NativeWindowViews::ContentBoundsToWindowBounds(
1164
1164
window_->non_client_view ()->GetWindowBoundsForClientBounds (dpi_bounds));
1165
1165
#endif
1166
1166
1167
- if (menu_bar_ && menu_bar_visible_)
1167
+ if (menu_bar_ && menu_bar_visible_) {
1168
+ window_bounds.set_y (window_bounds.y () - kMenuBarHeight );
1168
1169
window_bounds.set_height (window_bounds.height () + kMenuBarHeight );
1170
+ }
1169
1171
return window_bounds;
1170
1172
}
1171
1173
@@ -1190,8 +1192,10 @@ gfx::Rect NativeWindowViews::WindowBoundsToContentBounds(
1190
1192
display::win::ScreenWin::ScreenToDIPSize (hwnd, content_bounds.size ()));
1191
1193
#endif
1192
1194
1193
- if (menu_bar_ && menu_bar_visible_)
1195
+ if (menu_bar_ && menu_bar_visible_) {
1196
+ content_bounds.set_y (content_bounds.y () + kMenuBarHeight );
1194
1197
content_bounds.set_height (content_bounds.height () - kMenuBarHeight );
1198
+ }
1195
1199
return content_bounds;
1196
1200
}
1197
1201
You can’t perform that action at this time.
0 commit comments