Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认设置editbox的编辑模式为SINGLE_LINE 否则若是任意输入情况下,输入框垂直居中对齐会无效,引擎会强制改为顶对齐,除非手动设置。 #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

urolzeen
Copy link

//默认设置editbox的编辑模式为SINGLE_LINE 否则若是任意输入情况下,输入框垂直居中对齐会无效,引擎会强制改为顶对齐,除非手动设置。
//注意:改为Single_Line后,因为cocos的输入框策略,可以输入除换行符外的任意字符,如果要输入换行符,cocos引擎内部仍然会改为顶对齐

@xiaoguzhu
Copy link
Member

这个可以放在这里让别人参考,但我不确认是否应该这样做,因为cocos各个版本会有差异。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants