Browse Source

Pull request #3183: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '28ca2fee2a2e6f095b4dd106c7943863510a4ba6':
  bugfix
es6
guy-王川 2 years ago
parent
commit
b6b2ebd678
  1. 25
      src/case/layer/panel.js

25
src/case/layer/panel.js

@ -11,22 +11,21 @@ BI.Panel = BI.inherit(BI.Widget, {
titleHeight: 30,
titleButtons: [],
el: {},
logic: {
dynamic: false
}
// logic: {
// dynamic: false
// }
});
},
_init: function () {
render: function () {
BI.Panel.superclass._init.apply(this, arguments);
var o = this.options;
BI.createWidget(BI.extend({
element: this
}, BI.LogicFactory.createLogic("vertical", BI.extend(o.logic, {
items: BI.LogicFactory.createLogicItemsByDirection("top", this._createTitle()
, this.options.el)
}))));
return {
type: "bi.vertical_fill",
rowSize: ["", "fill"],
items: [this._createTitle(), this.options.el]
};
},
_createTitle: function () {
@ -56,7 +55,7 @@ BI.Panel = BI.inherit(BI.Widget, {
});
return {
el: {
// el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-header-background bi-border-bottom",
height: BI.toPix(o.titleHeight, 1),
@ -66,8 +65,8 @@ BI.Panel = BI.inherit(BI.Widget, {
},
lhgap: 10,
rhgap: 10
},
height: BI.toPix(o.titleHeight, 1)
// },
// height: BI.toPix(o.titleHeight, 1)
};
},

Loading…
Cancel
Save