|
|
@ -86,7 +86,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
if (BI.isNotEmptyString(o.watermark)) { |
|
|
|
if (BI.isNotEmptyString(o.watermark)) { |
|
|
|
if (!this.watermark) { |
|
|
|
if (!this.watermark) { |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.label", |
|
|
|
cls: "bi-water-mark cursor-default textarea-watermark", |
|
|
|
cls: "bi-water-mark cursor-default textarea-watermark", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
whiteSpace: "normal", |
|
|
|
whiteSpace: "normal", |
|
|
@ -96,8 +96,15 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
hgap: 4, |
|
|
|
hgap: 4, |
|
|
|
vgap: 4 |
|
|
|
vgap: 4 |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.watermark.on(BI.TextButton.EVENT_CHANGE, function () { |
|
|
|
this.watermark.element.bind({ |
|
|
|
self.focus(); |
|
|
|
mousedown: function (e) { |
|
|
|
|
|
|
|
if (self.isEnabled()) { |
|
|
|
|
|
|
|
self.editor.focus(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
self.editor.blur(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
e.stopEvent(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|