Skip to content

Commit bf31c7b

Browse files
committed
Fixed layout for modal header.
1 parent 77fcc40 commit bf31c7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/NativeUIKit/Labels/NativeModalHeaderView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ open class NativeModalHeaderView: SPView {
9393
guard let superview = self.superview else { return }
9494
let width = min(superview.readableWidth, NativeLayout.Sizes.not_actionable_area_maximum_width)
9595
setWidthAndFit(width: width)
96-
superview.setXCenter()
96+
setXCenter()
9797
frame.origin.y = y
9898
}
9999

@@ -104,7 +104,7 @@ open class NativeModalHeaderView: SPView {
104104
guard let superview = self.superview else { return }
105105
let width = min(superview.readableWidth, NativeLayout.Sizes.not_actionable_area_maximum_width)
106106
setWidthAndFit(width: width)
107-
superview.setXCenter()
107+
setXCenter()
108108
frame.setMaxY(maxY)
109109
}
110110

0 commit comments

Comments
 (0)