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