Skip to content
New issue

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

EditBox text position is wrong when editing in Layout #16955

Closed
mcube-12139 opened this issue May 8, 2024 · 2 comments
Closed

EditBox text position is wrong when editing in Layout #16955

mcube-12139 opened this issue May 8, 2024 · 2 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@mcube-12139
Copy link

Cocos Creator version

3.8.2

System information

Windows 10 Browser

Issue description

When I add 2 EditBox Nodes to a container Layout Node as children, one of the EditBox Nodes displays text at a wrong position when I edit it.
image
image
image

Relevant error log output

Nothing

Steps to reproduce

  1. Add a Layout Node to Canvas.
  2. Set the Layout type to "HORIZONTAL" and resizeType to "CONTAINER".
  3. Instantiate 2 EditBox Nodes by code, and add them to the Layout Node as children.
  4. Test to run in browser.

Minimal reproduction project

editbox-bug.zip

@mcube-12139 mcube-12139 added Bug Needs Triage Needs to be assigned by the team labels May 8, 2024
@minggo
Copy link
Contributor

minggo commented May 8, 2024

I think it is fixed in v3.8.3.
@qiuguohua could you please double check it?

@qiuguohua
Copy link
Contributor

I tested it and it works fine in 3.8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants