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

placeholder vertical alignment error when set it with a delay time #19004

Open
drelaptop opened this issue Aug 28, 2018 · 0 comments
Open

placeholder vertical alignment error when set it with a delay time #19004

drelaptop opened this issue Aug 28, 2018 · 0 comments

Comments

@drelaptop
Copy link
Contributor

  • cocos2d-x version: 3.17
  • devices test on: windows, maybe all platforms
  • developing environments
    • NDK version:
    • Xcode version:
    • VS version:
    • browser type and version:

Steps to Reproduce:

ui::EditBox* edi = ui::EditBox::create(ada->getContentSize(), "CloseSelected.png");
 edi->setInputMode(ui::EditBox::InputMode::NUMERIC);
 rootNode->addChild(edi);
 edi->setContentSize(ada->getContentSize());
 edi->setPosition(ada->getPosition());
 edi->setPlaceholderFontSize(20);

 edi->runAction(Sequence::create(DelayTime::create(1.0), CallFunc::create([=]() {
  edi->setPlaceHolder("123456");
 }), NULL));
@drelaptop drelaptop changed the title EditBox Placeholder vertical alignment error when set it with a delay time placeholder vertical alignment error when set it with a delay time Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant