Skip to content

Commit 5108a6c

Browse files
authored
Merge pull request #376 from alexander-mai/fix/bottomsheet-ios-width-on-safeareas
fix (bottomsheet ios) corrected width on safe areas
2 parents 7c17ef7 + d7ea57d commit 5108a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ function layoutView(controller: IMDLayoutViewController, owner: View): void {
189189
owner.nativeViewProtected.frame = CGRectMake(
190190
Utils.layout.toDeviceIndependentPixels(adjustedPosition.left),
191191
Utils.layout.toDeviceIndependentPixels(adjustedPosition.top),
192-
Utils.layout.toDeviceIndependentPixels(adjustedPosition.right - adjustedPosition.left),
193-
Utils.layout.toDeviceIndependentPixels(adjustedPosition.bottom - adjustedPosition.top)
192+
Utils.layout.toDeviceIndependentPixels(adjustedPosition.right),
193+
Utils.layout.toDeviceIndependentPixels(adjustedPosition.bottom)
194194
);
195195
}
196196
controller.preferredContentSize = CGSizeMake(Utils.layout.toDeviceIndependentPixels(effectiveWidth), Utils.layout.toDeviceIndependentPixels(effectiveHeight));

0 commit comments

Comments
 (0)