Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

Editbox on IOS does not work correctly

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>