cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

canvas does not trigger resize [Alipay]

Open OnlyKoei opened this issue 3 years ago • 2 comments

Cocos Creator version

3.5.2,3.6.0-080521

System information

window10

Issue description

https://forum.cocos.org/t/topic/138507 image image

image You can see that the input is moved up, but the canvas does not trigger the resizeFrame properly.

Relevant error log output

No response

Steps to reproduce

  1. create a editbox node;
  2. Use Alipay to scan the code: image

Minimal reproduction project

No response

OnlyKoei avatar Aug 09 '22 09:08 OnlyKoei

@timlyeee please take a look. If you need any help, can ask @PPpro .

minggo avatar Aug 09 '22 09:08 minggo

This issue is totally wrong!!! It's not how it works!

Editbox is a DOM element on web, and when the user is trying to input some text, this dom element will scroll up with the DOM API scrollIntoView.

Alipay's web browser does not support this API so the behavior becomes like this. But we cannot detect if it's a Alipay browser or something else....

Please checkout if Alipay mini game has the same issue and that's what we're digging in. @OnlyKoei

timlyeee avatar Sep 23 '22 07:09 timlyeee

此问题属于支付宝软件中的 webview 环境独有的问题,属于支付宝软件的功能缺陷,不是引擎所使用的标准 web api 所能解决的。 用户如果遇到此问题,可以建议针对这个运行环境停止对 edit-box-impl.ts 中的 _adjustWindowScroll 函数的执行。 图片

问题关闭。

This problem is unique to the webview environment in the Alipay software and is a functional defect of the Alipay software that cannot be solved by the standard web api used by the engine. Users who encounter this problem can suggest stopping the execution of the _adjustWindowScroll function in edit-box-impl.ts for this runtime environment. 图片

Close.

zhefengzhang avatar Feb 21 '23 07:02 zhefengzhang