默认设置editbox的编辑模式为SINGLE_LINE 否则若是任意输入情况下,输入框垂直居中对齐会无效,引擎会强制改为顶对齐,除非手动设置。#76
Open
urolzeen wants to merge 2 commits intofairygui:masterfrom
Open
默认设置editbox的编辑模式为SINGLE_LINE 否则若是任意输入情况下,输入框垂直居中对齐会无效,引擎会强制改为顶对齐,除非手动设置。#76urolzeen wants to merge 2 commits intofairygui:masterfrom
urolzeen wants to merge 2 commits intofairygui:masterfrom
Conversation
added 2 commits
May 27, 2022 09:24
注意:改为Single_Line后,因为cocos的输入框策略,可以输入除换行符外的任意字符,如果要输入换行符,cocos引擎内部仍然会改为顶对齐
Member
|
这个可以放在这里让别人参考,但我不确认是否应该这样做,因为cocos各个版本会有差异。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
//默认设置editbox的编辑模式为SINGLE_LINE 否则若是任意输入情况下,输入框垂直居中对齐会无效,引擎会强制改为顶对齐,除非手动设置。
//注意:改为Single_Line后,因为cocos的输入框策略,可以输入除换行符外的任意字符,如果要输入换行符,cocos引擎内部仍然会改为顶对齐