|
|
|
@ -367,12 +367,15 @@
|
|
|
|
|
// switcher
|
|
|
|
|
BI.Switcher.prototype.populate = function (items) { |
|
|
|
|
injectSwitcherPopup.apply(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"; |
|
|
|
|
} |
|
|
|
|
var self = this; |
|
|
|
|
BI.defer(function () { |
|
|
|
|
if (self.popupView) { |
|
|
|
|
self.popupView.element[0].parentElement.style.left = parseInt(self.popupView.element[0].parentElement.style.left) * scale + "px"; |
|
|
|
|
self.popupView.element[0].parentElement.style.top = parseInt(self.popupView.element[0].parentElement.style.top) * scale + "px"; |
|
|
|
|
self.popupView.element[0].parentElement.style.transform = "scale(" + scale + ")"; |
|
|
|
|
self.popupView.element[0].parentElement.style.transformOrigin = "left top"; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
BI.Switcher.prototype.adjustView = function () { |
|
|
|
|
injectSwitcherAdjustView.apply(this, arguments); |
|
|
|
|