Uniapp在华为P40鸿蒙4.0.0上面使用safeArea.bottom导致的错误

使用safeArea.bottom来获取安全距离的高度会导致错误,需要使用safeAreaInsets.bottom,但是要达到和safeArea.bottom同样的效果需要使用screenHeight-safeAreaInsets.bottom计算得到和safeArea.bottom一样的值

posted @ 2024-01-10 09:35  乌拉小考  阅读(171)  评论(0编辑  收藏  举报