|
|
|
@ -28,7 +28,8 @@
|
|
|
|
|
var originalRender = BI.Widget._renderEngine; |
|
|
|
|
var injectSearchSearchStop = BI.Searcher.prototype._stopSearch; |
|
|
|
|
var injectTooltipsShow = BI.TooltipsController.prototype.show; |
|
|
|
|
var injectSwitcherPopup = BI.Switcher.prototype.adjustView; |
|
|
|
|
var injectSwitcherPopup = BI.Switcher.prototype.populate; |
|
|
|
|
var injectSwitcheradjustView = BI.Switcher.prototype.adjustView; |
|
|
|
|
|
|
|
|
|
var injectCreate = BI.createWidget; |
|
|
|
|
var callback = function () {}; |
|
|
|
@ -364,7 +365,7 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// switcher
|
|
|
|
|
BI.Switcher.prototype.adjustView = function () { |
|
|
|
|
BI.Switcher.prototype.populate = function () { |
|
|
|
|
injectSwitcherPopup.call(this, arguments); |
|
|
|
|
if (this.popupView) { |
|
|
|
|
this.popupView.element[0].parentElement.style.left = parseInt(this.popupView.element[0].parentElement.style.left) * scale + "px"; |
|
|
|
@ -373,6 +374,15 @@
|
|
|
|
|
this.popupView.element[0].parentElement.style.transformOrigin = "left top"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
BI.Switcher.prototype.adjustView = function () { |
|
|
|
|
injectSwitcheradjustView.call(this, arguments); |
|
|
|
|
if (this.popupView) { |
|
|
|
|
this.popupView.element[0].parentElement.style.left = parseInt(this.popupView.element[0].parentElement.style.left) * scale + "px"; |
|
|
|
|
this.popupView.element[0].parentElement.style.top = parseInt(this.popupView.element[0].parentElement.style.top) * scale + "px"; |
|
|
|
|
this.popupView.element[0].parentElement.style.transform = "scale(" + scale + ")"; |
|
|
|
|
this.popupView.element[0].parentElement.style.transformOrigin = "left top"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BI.createWidget = function () { |
|
|
|
@ -480,7 +490,8 @@
|
|
|
|
|
BI.Widget.registerRenderEngine(originalRender); |
|
|
|
|
|
|
|
|
|
callback = function () {} |
|
|
|
|
BI.Switcher.prototype.adjustView = injectSwitcherPopup; |
|
|
|
|
BI.Switcher.prototype.populate = injectSwitcherPopup; |
|
|
|
|
BI.Switcher.prototype.adjustView = injectSwitcheradjustView; |
|
|
|
|
BI.TooltipsController.prototype.show = injectTooltipsShow; |
|
|
|
|
|
|
|
|
|
document.body.onmousedown = null; |
|
|
|
|