Browse Source

KERNEL-11626 refactor组件宽高自适应的一些布局调整

es6
zsmj 2 years ago
parent
commit
5541c30f44
  1. 11
      src/widget/editor/editor.text.js

11
src/widget/editor/editor.text.js

@ -36,7 +36,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
this.editor = BI.createWidget({ this.editor = BI.createWidget({
type: "bi.editor", type: "bi.editor",
simple: o.simple, simple: o.simple,
height: o.height - border,
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
lgap: o.lgap, lgap: o.lgap,
@ -117,10 +116,14 @@ BI.TextEditor = BI.inherit(BI.Widget, {
self.fireEvent(BI.TextEditor.EVENT_EMPTY); self.fireEvent(BI.TextEditor.EVENT_EMPTY);
}); });
BI.createWidget({ BI.createWidget({
type: "bi.vertical", type: "bi.absolute",
scrolly: false,
element: this, element: this,
items: [this.editor] items: [
{
el: this.editor,
inset: 0
}
]
}); });
}, },

Loading…
Cancel
Save