底部安全距离

This commit is contained in:
liu
2026-07-01 23:00:44 +08:00
parent f992590c70
commit 0a1c8cdff1
+1 -1
View File
@@ -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