cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

Multiline Editbox on Mac Misbehaving #17378

Open jstock78 opened 7 years ago

jstock78 commented 7 years ago

We're seeing a problem with a multiline EditBox (setInputMode(ui::EditBox::InputMode::ANY)). The EditBox is at the bottom of our scene and whenever we start typing in it the typing appears at the top, outside the bounds of the EditBox. After leaving focus of the EditBox the text snaps to the correct position. Single line EditBox seems to work as expected.

minggo commented 7 years ago

Have you tried editbox tests in cpp-tests? How do it work?

jstock78 commented 7 years ago

The editbox cpp-test is misbehaving for me as well. Here's a screenshot that should show some random letters in the bottom multiline editbox, but nothing appears. (See the console log that is visible below it to see what I was typing.)

screen shot 2017-02-17 at 5 56 55 am
minggo commented 7 years ago

I tested in with latest codes, can show one line characters because the height only can show one line. I do it in like: