From f578e23d50b77249eaa3c4e2cc6c4d842108abe3 Mon Sep 17 00:00:00 2001 From: KeeGitee Date: Thu, 19 Jun 2025 11:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9avoidVisibleViewportBottom?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8D=95=E4=BD=8D=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: KeeGitee --- api/@ohos.web.webview.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index df177008c9..6f50947734 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -6574,10 +6574,12 @@ declare namespace webview { * Sets the bottom avoidance height of the web visible viewport. * When setting non-zero height, the position and size of the web component remain unchanged, *
and the visible viewport upward avoids avoidHeight, as manifested by the web page content raising avoidHeight. - *
In this case, the keyboardAvoidMode will be OVERLAYS_CONTENT when clicking the input box in the web page. + *
This interface is generally used for customizing the bottom avoidance area, and it is not recommended for + *
simultaneous use with clicking the editable area of the web page showing the keyboard. + *
In this case, the keyboardAvoidMode will be OVERLAYS_CONTENT. * When setting zero, web page content can be restored and the keyboardAvoidMode will be the value set by keyboardAvoidMode(). * - * @param { number } avoidHeight - the height value of the visible viewport avoidance. Unit: px. + * @param { number } avoidHeight - the height value of the visible viewport avoidance. Unit: vp. *
The valid interval of avoidHeight is [0, the height of web component]. *
When avoidHeight is out of the valid interval, it takes the boundary value of the interval. * @throws { BusinessError } 17100001 - Init error. -- Gitee