Skip to content

Commit

Permalink
nw2: fix window moving left while calling resizeTo()
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Jan 6, 2020
1 parent 31798d7 commit 245fdcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/browser/ui/views/frame/glass_browser_frame_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ gfx::Rect GlassBrowserFrameView::GetWindowBoundsForClientBounds(
const int thickness = std::floor(
FrameTopBorderThicknessPx(false) /
display::win::ScreenWin::GetScaleFactorForHWND(hwnd));
return gfx::Rect(std::max(0, client_bounds.x() - thickness),
return gfx::Rect(std::max(0, client_bounds.x()),
std::max(0, client_bounds.y() - top_inset),
client_bounds.width() + 2 * thickness, client_bounds.height() + top_inset + thickness);
}
Expand Down

0 comments on commit 245fdcd

Please sign in to comment.