diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index df177008c9050c1040b921e2a4fb21c1c470545c..6f50947734b8b3291a74f6ab03e06ea844b4e8a0 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.