mac: Fix bug in GetNSBoundsInDisplay (see issue #3359)

This commit is contained in:
Marshall Greenblatt 2022-11-16 12:15:37 -05:00
parent 216e5b31dd
commit d7d0c2fc6d
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ void GetNSBoundsInDisplay(const gfx::Rect& dip_bounds,
if (input_content_bounds) {
// Compute frame rect from content rect. Keep the requested origin.
content_rect = requested_rect;
frame_rect = [NSWindow frameRectForContentRect:frame_rect
frame_rect = [NSWindow frameRectForContentRect:content_rect
styleMask:style_mask];
frame_rect.origin = requested_rect.origin;
} else {

View File

@ -161,7 +161,7 @@ void GetNSBoundsInDisplay(const CefRect& dip_bounds,
if (input_content_bounds) {
// Compute frame rect from content rect. Keep the requested origin.
content_rect = requested_rect;
frame_rect = [NSWindow frameRectForContentRect:frame_rect
frame_rect = [NSWindow frameRectForContentRect:content_rect
styleMask:style_mask];
frame_rect.origin = requested_rect.origin;
} else {