From 0cd714a3bbaddcfbda487f5e350ab89f08094bcf Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 30 Jul 2021 02:24:30 -0700 Subject: [PATCH] fix: use contentAspectRatio not aspectRatio (#30332) Co-authored-by: Shelley Vohr --- shell/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index 6b708b4e9a..fbedeb2876 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -1601,7 +1601,7 @@ void NativeWindowMac::SetAspectRatio(double aspect_ratio, // Reset the behaviour to default if aspect_ratio is set to 0 or less. if (aspect_ratio > 0.0) - [window_ setAspectRatio:NSMakeSize(aspect_ratio, 1.0)]; + [window_ setContentAspectRatio:NSMakeSize(aspect_ratio, 1.0)]; else [window_ setResizeIncrements:NSMakeSize(1.0, 1.0)]; }