File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -165,23 +165,24 @@ class UIPageViewControllerImpl extends UIPageViewController {
165
165
safeAreaInsetsTop = this . topLayoutGuide . length ;
166
166
}
167
167
168
+ const conditionalSafeAreaBottom = owner . iosOverflowSafeArea ? safeAreaInsetsBottom : 0 ;
168
169
let scrollViewTop = 0 ;
169
- let scrollViewHeight = this . view . bounds . size . height + safeAreaInsetsBottom ;
170
+ let scrollViewHeight = this . view . bounds . size . height + conditionalSafeAreaBottom ;
170
171
171
172
if ( owner . tabStrip ) {
172
- // this.tabBar.sizeToFit();
173
- const tabBarHeight = this . tabBar . frame . size . height ;
174
173
const viewWidth = this . view . bounds . size . width ;
175
174
const viewHeight = this . view . bounds . size . height ;
176
- scrollViewTop = tabBarHeight ;
177
- scrollViewHeight = viewHeight - tabBarHeight + safeAreaInsetsBottom ;
175
+ const tabBarHeight = this . tabBar . frame . size . height ;
178
176
let tabBarTop = safeAreaInsetsTop ;
179
177
178
+ scrollViewTop = tabBarHeight ;
179
+ scrollViewHeight = this . view . bounds . size . height - tabBarHeight + conditionalSafeAreaBottom ;
180
+
180
181
const tabsPosition = owner . tabsPosition ;
181
182
if ( tabsPosition === 'bottom' ) {
182
183
tabBarTop = viewHeight - tabBarHeight - safeAreaInsetsBottom ;
183
184
scrollViewTop = this . view . frame . origin . y ;
184
- scrollViewHeight = viewHeight - safeAreaInsetsBottom ;
185
+ scrollViewHeight = viewHeight - tabBarHeight ;
185
186
}
186
187
187
188
let parent = owner . parent ;
You can’t perform that action at this time.
0 commit comments