Should use setTextColor for editbox placeholder. (#18311)

This commit is contained in:
James Chen 2017-09-22 03:06:13 -05:00 committed by minggo
parent bd59575468
commit b633260020
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void EditBoxImplCommon::initInactiveLabels(const Size& size)
_labelPlaceHolder = Label::create();
_labelPlaceHolder->setAnchorPoint(Vec2(0, 1.0f));
_labelPlaceHolder->setColor(Color3B::GRAY);
_labelPlaceHolder->setTextColor(Color4B::GRAY);
_labelPlaceHolder->enableWrap(false);
_editBox->addChild(_labelPlaceHolder, kLabelZOrder);