Fixed UIEditBoxTest display error font size

This commit is contained in:
WenhaiLin 2015-01-20 18:08:17 +08:00
parent 2c5d82d772
commit ef55ccdbeb
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);