Skip to content

Commit 9f52059

Browse files
committed
Fixed layout.
1 parent 93e4b8c commit 9f52059

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Sources/NativeUIKit/Views/NativePromoView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ open class NativePromoContainerView: SPView {
145145
}
146146

147147
open override func sizeThatFits(_ size: CGSize) -> CGSize {
148-
let superSize = super.sizeThatFits(size)
149148
layoutSubviews()
150-
return .init(width: superSize.width, height: promoView.frame.maxY + layoutMargins.bottom)
149+
return .init(width: size.width, height: promoView.frame.maxY + layoutMargins.bottom)
151150
}
152151
}
153152
#endif

0 commit comments

Comments
 (0)