From 72d8466e05c4d2d58c286d261be54323dd92180f Mon Sep 17 00:00:00 2001 From: "taohebin@dcloud.io" Date: Thu, 1 Aug 2024 11:06:47 +0800 Subject: [PATCH] Update get-window-info.md --- docs/api/get-window-info.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/get-window-info.md b/docs/api/get-window-info.md index 8c23e726..2030d547 100644 --- a/docs/api/get-window-info.md +++ b/docs/api/get-window-info.md @@ -10,6 +10,7 @@ ::: warning 注意事项 - Android端的`windowHeight`属性是有时机的考量的,如果在全局作用域获取`windowHeight`,有可能当前Activity还未加载,所以导航栏和Tabbar的高度是不会计算进去的,稳妥起见,建议在`onReady`或者`onPageShow`内获取`windowheight`。 +- `windowHeight`属性是依赖于调用Api时栈顶Page的,比如延迟获取`windowHeight`,很可能页面已经切换了,这时候获取的高度是新的页面的。 - 仅iOS有安全区概念 ::: -- GitLab