We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a03e9e + bb498d0 commit db236b8Copy full SHA for db236b8
extensions/cocostudio/reader/widgetreader/TextFieldReader/TextFieldReader.js
@@ -42,7 +42,7 @@ ccs.textFieldReader = /** @lends ccs.TextFieldReader# */{
42
var ph = options["placeHolder"];
43
if(ph)
44
textField.setPlaceHolder(ph);
45
- textField.setString(options["text"] || "Text Field");
+ textField.setString(options["text"]||"");
46
var fs = options["fontSize1"];
47
if(fs)
48
textField.setFontSize(fs);
@@ -73,7 +73,7 @@ ccs.textFieldReader = /** @lends ccs.TextFieldReader# */{
73
74
var aw = options["areaWidth"];
75
var ah = options["areaHeight"];
76
- if(aw!=null && ah!=null){
+ if(aw && ah){
77
var size = cc.size(aw, ah);
78
textField.setTextAreaSize(size);
79
}
0 commit comments