Skip to content

Commit 9a38a43

Browse files
committed
fix(ios): page item not updating on change
1 parent da491d2 commit 9a38a43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ui-pager/index.ios.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,6 @@ export class Pager extends PagerBase {
617617
View.measureChild(this, childView, childView._currentWidthMeasureSpec, childView._currentHeightMeasureSpec);
618618
});
619619
}
620-
iosOverflowSafeAreaEnabledLayoutHackNeeded = true;
621620

622621
public onLayout(left: number, top: number, right: number, bottom: number) {
623622
super.onLayout(left, top, right, bottom);
@@ -1161,7 +1160,7 @@ class UICollectionViewDataSourceImpl extends NSObject implements UICollectionVie
11611160
const cellView: any = (cell as PagerCell).view;
11621161
cellView.iosOverflowSafeArea = owner.iosOverflowSafeArea;
11631162
cellView['iosIgnoreSafeArea'] = owner['iosIgnoreSafeArea'];
1164-
if (!owner.iosOverflowSafeAreaEnabled && cellView && cellView.isLayoutRequired) {
1163+
if (cellView && cellView.isLayoutRequired) {
11651164
View.layoutChild(owner, cellView, 0, 0, Utils.layout.toDevicePixels(size.width), Utils.layout.toDevicePixels(size.height));
11661165
}
11671166
}

0 commit comments

Comments
 (0)