@anhtuan89 wrote:
Hi Guys,
I created a editbox, it work ok on android, but not ok on IOS.
Here is my code:_txtcamnhan = EditBox::create(Size(600, 200), ui::Scale9Sprite::create("images/bg.png")); _txtcamnhan->setFontName("Arial.ttf"); _txtcamnhan->setFontSize(25); _txtcamnhan->setFontColor(Color3B::BLACK); _txtcamnhan->setPlaceHolder("Cam nhan"); _txtcamnhan->setPlaceholderFontColor(Color3B::GRAY); _txtcamnhan->setPlaceholderFontSize(25); _txtcamnhan->setInputMode(EditBox::InputMode::ANY); _txtcamnhan->setInputFlag(EditBox::InputFlag::SENSITIVE);
The problem is, when this editbox is focused, the font size is so big, when the edited lose focus, everything came normal. You can see in the picture
On focus, begin edit
after editing
Can someone help me,many thanks.
Posts: 4
Participants: 2