|
|
@ -9,7 +9,8 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
SMALL: "small", |
|
|
|
SMALL: "small", |
|
|
|
NORMAL: "normal", |
|
|
|
NORMAL: "normal", |
|
|
|
BIG: "big" |
|
|
|
BIG: "big" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
HEADER_HEIGHT: 40 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
@ -56,7 +57,7 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header) : { |
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header) : { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: 36, |
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
text: o.header, |
|
|
|
text: o.header, |
|
|
|
title: o.header, |
|
|
|
title: o.header, |
|
|
|
textAlign: "left" |
|
|
|
textAlign: "left" |
|
|
@ -72,7 +73,7 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
|
cls: "bi-message-close close-font", |
|
|
|
cls: "bi-message-close close-font", |
|
|
|
height: 36, |
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
self.close(); |
|
|
|
self.close(); |
|
|
|
} |
|
|
|
} |
|
|
@ -81,7 +82,7 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 36 |
|
|
|
height: this._constant.HEADER_HEIGHT |
|
|
|
}, |
|
|
|
}, |
|
|
|
center: { |
|
|
|
center: { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|