|
|
@ -99,8 +99,8 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
self.body = this; |
|
|
|
self.body = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
css: { |
|
|
|
css: { |
|
|
|
"max-height": c.MAX_HEIGHT - o.headerHeight - (o.footer ? o.footerHeight : 0) - c.BODY_TGAP, |
|
|
|
"max-height": this._getSuitableBodyHeight(c.MAX_HEIGHT - o.headerHeight - (o.footer ? o.footerHeight : 0) - c.BODY_TGAP), |
|
|
|
"min-height": size.height, |
|
|
|
"min-height": this._getSuitableBodyHeight(size.height), |
|
|
|
}, |
|
|
|
}, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: o.body, |
|
|
|
el: o.body, |
|
|
@ -146,7 +146,7 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
scrolly: false, |
|
|
|
scrolly: false, |
|
|
|
} : { |
|
|
|
} : { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
height: size.height, |
|
|
|
height: BI.clamp(size.height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight), |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -160,6 +160,12 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getSuitableBodyHeight: function (height) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var c = this._constant; |
|
|
|
|
|
|
|
return BI.clamp(height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight - o.headerHeight - (o.footer ? o.footerHeight : 0) - c.BODY_TGAP); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_calculateSize: function () { |
|
|
|
_calculateSize: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var size = {}; |
|
|
|
var size = {}; |
|
|
|