mirror of https://github.com/axmolengine/axmol.git
setPlaceholderFontSize fix
This commit is contained in:
parent
047025696c
commit
14853d46f2
|
@ -268,7 +268,7 @@ void EditBox::setPlaceholderFontSize(int fontSize)
|
|||
_placeholderFontSize = fontSize;
|
||||
if (_editBoxImpl != nullptr && _placeholderFontName.length() > 0)
|
||||
{
|
||||
_editBoxImpl->setPlaceholderFont(_placeholderFontName.c_str(), _fontSize);
|
||||
_editBoxImpl->setPlaceholderFont(_placeholderFontName.c_str(), fontSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -395,8 +395,6 @@ void EditBoxImplIOS::setFont(const char* pFontName, int fontSize)
|
|||
|
||||
_label->setSystemFontName(pFontName);
|
||||
_label->setSystemFontSize(fontSize);
|
||||
_labelPlaceHolder->setSystemFontName(pFontName);
|
||||
_labelPlaceHolder->setSystemFontSize(fontSize);
|
||||
}
|
||||
|
||||
void EditBoxImplIOS::setFontColor(const Color3B& color)
|
||||
|
@ -407,7 +405,8 @@ void EditBoxImplIOS::setFontColor(const Color3B& color)
|
|||
|
||||
void EditBoxImplIOS::setPlaceholderFont(const char* pFontName, int fontSize)
|
||||
{
|
||||
// TODO: need to be implemented.
|
||||
_labelPlaceHolder->setSystemFontName(pFontName);
|
||||
_labelPlaceHolder->setSystemFontSize(fontSize);
|
||||
}
|
||||
|
||||
void EditBoxImplIOS::setPlaceholderFontColor(const Color3B& color)
|
||||
|
|
Loading…
Reference in New Issue