mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(tabs): respect iosOverflowSafeArea value
This commit is contained in:
@@ -174,15 +174,16 @@ class UIPageViewControllerImpl extends UIPageViewController {
|
||||
safeAreaInsetsTop = this.topLayoutGuide.length;
|
||||
}
|
||||
|
||||
let conditionalSafeAreaBottom = owner.iosOverflowSafeArea ? safeAreaInsetsBottom : 0;
|
||||
let scrollViewTop = 0;
|
||||
let scrollViewHeight = this.view.bounds.size.height;
|
||||
let scrollViewHeight = this.view.bounds.size.height + conditionalSafeAreaBottom;
|
||||
|
||||
if (owner.tabStrip) {
|
||||
const tabBarHeight = this.tabBar.frame.size.height;
|
||||
let tabBarTop = safeAreaInsetsTop;
|
||||
|
||||
scrollViewTop = tabBarHeight;
|
||||
scrollViewHeight = this.view.bounds.size.height - tabBarHeight;
|
||||
scrollViewHeight = this.view.bounds.size.height - tabBarHeight + conditionalSafeAreaBottom;
|
||||
|
||||
const tabsPosition = owner.tabsPosition;
|
||||
if (tabsPosition === "bottom") {
|
||||
|
||||
Reference in New Issue
Block a user