We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.8.3
MacOS Sequoia 15.2, Chrome 131.0.6778.265
如果项目设计分辨率是竖屏,仅勾选了适配屏幕高度。
游戏运行在 Web 端时,聚焦 EditBox 会导致输入框出现偏移,将画面挤出到画布之外
No response
新建一个 Empty 2D 空项目
项目设计分辨率:1125, 2436。仅勾选适配屏幕高度。
在 Canvas 节点下,新建一个 EditBox 对象
在浏览器预览,使用网页全屏模式.
在游戏中点击 EditBox 聚焦输入框。
观察现象:光标偏移到了画布右侧,在输入任意字符输入法也同样在屏幕外,整个游戏画布也会出现偏移,并随着输入光标而进一步影响偏移位置。
The text was updated successfully, but these errors were encountered:
看起来和这个问题是相同的 #12299
Sorry, something went wrong.
是否能提供一个方法,手动更新 EditBox 位置和尺寸跟 Canvas 进行同步?
qiuguohua
No branches or pull requests
Cocos Creator version
3.8.3
System information
MacOS Sequoia 15.2, Chrome 131.0.6778.265
Issue description
如果项目设计分辨率是竖屏,仅勾选了适配屏幕高度。
游戏运行在 Web 端时,聚焦 EditBox 会导致输入框出现偏移,将画面挤出到画布之外
Relevant error log output
No response
Steps to reproduce
新建一个 Empty 2D 空项目
项目设计分辨率:1125, 2436。仅勾选适配屏幕高度。
在 Canvas 节点下,新建一个 EditBox 对象
在浏览器预览,使用网页全屏模式.
在游戏中点击 EditBox 聚焦输入框。
观察现象:光标偏移到了画布右侧,在输入任意字符输入法也同样在屏幕外,整个游戏画布也会出现偏移,并随着输入光标而进一步影响偏移位置。
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: