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. 41
      src/case/layer/panel.js

41
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,18 +55,18 @@ BI.Panel = BI.inherit(BI.Widget, {
});
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-header-background bi-border-bottom",
height: BI.toPix(o.titleHeight, 1),
items: {
left: [this.text],
right: [this.button_group]
},
lhgap: 10,
rhgap: 10
// el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-header-background bi-border-bottom",
height: BI.toPix(o.titleHeight, 1),
items: {
left: [this.text],
right: [this.button_group]
},
height: BI.toPix(o.titleHeight, 1)
lhgap: 10,
rhgap: 10
// },
// height: BI.toPix(o.titleHeight, 1)
};
},

Loading…
Cancel
Save