fix bug with computing the case where we should constrain via height
This commit is contained in:
parent
d0c6176640
commit
6656afd57f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue