Browse Source

update

persist/10.0
fay 5 years ago
parent
commit
b7262aa3a4
  1. 15
      src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js
  2. 15
      src/main/resources/com/finebi/plugin/web/scripts/entry.js

15
src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js

@ -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);

15
src/main/resources/com/finebi/plugin/web/scripts/entry.js

@ -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);

Loading…
Cancel
Save