mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fixed cocos-creator/fireball/issues/7858 (#2963)
This commit is contained in:
@@ -385,11 +385,13 @@ let EditBox = cc.Class({
|
||||
|
||||
if (this.inputMode === InputMode.ANY){
|
||||
placeholderLabel.verticalAlign = macro.VerticalTextAlignment.TOP;
|
||||
placeholderLabel.enableWrapText = true;
|
||||
textLabel.verticalAlign = macro.VerticalTextAlignment.TOP;
|
||||
textLabel.enableWrapText = true;
|
||||
}
|
||||
else {
|
||||
placeholderLabel.verticalAlign = macro.VerticalTextAlignment.CENTER;
|
||||
placeholderLabel.enableWrapText = false;
|
||||
textLabel.verticalAlign = macro.VerticalTextAlignment.CENTER;
|
||||
textLabel.enableWrapText = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user