底部安全距离
This commit is contained in:
@@ -30,7 +30,7 @@ function getSafeBottom(): number {
|
|||||||
try {
|
try {
|
||||||
const info = Taro.getSystemInfoSync()
|
const info = Taro.getSystemInfoSync()
|
||||||
if (info.safeArea) {
|
if (info.safeArea) {
|
||||||
return info.safeArea.bottom
|
return info.screenHeight - info.safeArea.bottom
|
||||||
}
|
}
|
||||||
} catch { /* ignore */ }
|
} catch { /* ignore */ }
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user