Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit de36ef2

Browse files
maickiappleguy
authored andcommitted
Fix height check in ratio layout spec (#2553)
1 parent e4da413 commit de36ef2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKit/Layout/ASRatioLayoutSpec.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ - (ASLayout *)calculateLayoutThatFits:(ASSizeRange)constrainedSize
6868
}));
6969
}
7070

71-
if (ASPointsValidForSize(constrainedSize.max.width)) {
71+
if (ASPointsValidForSize(constrainedSize.max.height)) {
7272
sizeOptions.push_back(ASSizeRangeClamp(constrainedSize, {
7373
ASFloorPixelValue(constrainedSize.max.height / _ratio),
7474
constrainedSize.max.height

0 commit comments

Comments
 (0)