Merge pull request #10114 from Dhilan007/v3-UIEditBoxTest-fix

Fixed UIEditBoxTest display error font size
This commit is contained in:
minggo 2015-01-21 09:45:10 +08:00
commit af489e998a
1 changed files with 0 additions and 6 deletions

View File

@ -71,12 +71,6 @@ bool UIEditBoxTest::init()
// middle
_editPassword = ui::EditBox::create(editBoxSize, "extensions/orange_edit.png");
_editPassword->setPosition(Vec2(visibleOrigin.x+visibleSize.width/2, visibleOrigin.y+visibleSize.height/2));
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
_editPassword->setFont("American Typewriter", 30);
#else
_editPassword->setFont("American Typewriter", 80);
_editPassword->setPlaceholderFont("American Typewriter", 80);
#endif
_editPassword->setFontColor(Color3B::GREEN);
_editPassword->setPlaceHolder("Password:");
_editPassword->setMaxLength(6);