|
|
@ -60,8 +60,8 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.element.css({ |
|
|
|
this.element.css({ |
|
|
|
"z-index": BI.zIndex_popup, |
|
|
|
"z-index": BI.zIndex_popup, |
|
|
|
"min-width": BI.isNumeric(o.minWidth) ? (BI.pixFormat(o.minWidth)) : o.minWidth, |
|
|
|
"min-width": BI.toPix(o.minWidth), |
|
|
|
"max-width": BI.isNumeric(o.maxWidth) ? (BI.pixFormat(o.maxWidth)) : o.maxWidth, |
|
|
|
"max-width": BI.toPix(o.maxWidth), |
|
|
|
}).bind({ click: fn }); |
|
|
|
}).bind({ click: fn }); |
|
|
|
|
|
|
|
|
|
|
|
this.element.bind("mousewheel", fn); |
|
|
|
this.element.bind("mousewheel", fn); |
|
|
@ -135,11 +135,11 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.button_group = BI.createWidget(o.el, { type: "bi.button_group", value: o.value }); |
|
|
|
this.button_group = BI.createWidget(o.el, { type: "bi.button_group", value: o.value }); |
|
|
|
this.button_group.element.css({ |
|
|
|
this.button_group.element.css({ |
|
|
|
"min-height": BI.isNumeric(o.minHeight) ? (BI.pixFormat(o.minHeight)) : o.minHeight, |
|
|
|
"min-height": BI.toPix(o.minHeight), |
|
|
|
"padding-top": BI.pixFormat(o.innerVgap), |
|
|
|
"padding-top": BI.toPix(o.innerVgap), |
|
|
|
"padding-bottom": BI.pixFormat(o.innerVgap), |
|
|
|
"padding-bottom": BI.toPix(o.innerVgap), |
|
|
|
"padding-left": BI.pixFormat(o.innerHgap), |
|
|
|
"padding-left": BI.toPix(o.innerHgap), |
|
|
|
"padding-right": BI.pixFormat(o.innerHgap), |
|
|
|
"padding-right": BI.toPix(o.innerHgap), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return this.button_group; |
|
|
|
return this.button_group; |
|
|
@ -411,7 +411,7 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
toolHeight = ((this.tool && this.tool.attr("height")) || 24) * ((this.tool && this.tool.isVisible()) ? 1 : 0); |
|
|
|
toolHeight = ((this.tool && this.tool.attr("height")) || 24) * ((this.tool && this.tool.isVisible()) ? 1 : 0); |
|
|
|
var resetHeight = h - tbHeight - tabHeight - toolHeight - 2 * this.options.innerVgap; |
|
|
|
var resetHeight = h - tbHeight - tabHeight - toolHeight - 2 * this.options.innerVgap; |
|
|
|
this.view.resetHeight ? this.view.resetHeight(resetHeight) : |
|
|
|
this.view.resetHeight ? this.view.resetHeight(resetHeight) : |
|
|
|
this.view.element.css({ "max-height": BI.pixFormat(resetHeight) }); |
|
|
|
this.view.element.css({ "max-height": BI.toPix(resetHeight) }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (selectedValues) { |
|
|
|
setValue: function (selectedValues) { |
|
|
|