mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix bug with computing the case where we should constrain via height
This commit is contained in:
@@ -114,8 +114,8 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
|
||||
newSize.height = roundf(((newSize.width - extraWidthPlusFrame) / interiorContentAspectRatio) + extraHeightPlusFrame);
|
||||
}
|
||||
else {
|
||||
newSize.width = roundf(((newSize.height - extraHeightPlusFrame) * interiorContentAspectRatio) + extraWidthPlusFrame);
|
||||
newSize.height = roundf(((frameSize.width - extraWidthPlusFrame) / interiorContentAspectRatio) + extraHeightPlusFrame);
|
||||
newSize.width = roundf(((newSize.height - extraHeightPlusFrame) * interiorContentAspectRatio) + extraWidthPlusFrame);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user