guy 2 years ago
parent
commit
293561fa87
  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