Browse Source

REPORT-20059 fix: textarea水印滚动

es6
windy 5 years ago
parent
commit
c06fe4199c
  1. 13
      src/base/single/editor/editor.textarea.js
  2. 1
      src/base/single/label/abstract.label.js

13
src/base/single/editor/editor.textarea.js

@ -33,7 +33,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
left: 4, left: 4,
right: 4, right: 4,
top: 4, top: 4,
bottom: 8 bottom: 4
}] }]
}); });
@ -86,7 +86,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
whiteSpace: "normal", whiteSpace: "normal",
text: o.watermark, text: o.watermark,
invalid: o.invalid, invalid: o.invalid,
disabled: o.disabled disabled: o.disabled,
hgap: 4,
vgap: 4
}); });
this.watermark.on(BI.TextButton.EVENT_CHANGE, function () { this.watermark.on(BI.TextButton.EVENT_CHANGE, function () {
self.focus(); self.focus();
@ -96,9 +98,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
element: this, element: this,
items: [{ items: [{
el: this.watermark, el: this.watermark,
left: 4, left: 0,
top: 4, top: 0,
right: 0 right: 0,
bottom: 0
}] }]
}); });
} else { } else {

1
src/base/single/label/abstract.label.js

@ -324,6 +324,7 @@ BI.AbstractLabel = BI.inherit(BI.Single, {
BI.createWidget({ BI.createWidget({
type: adaptLayout, type: adaptLayout,
element: this, element: this,
scrollable: o.whiteSpace === "normal",
items: [this.text] items: [this.text]
}); });
}, },

Loading…
Cancel
Save