Browse Source

无JIRA任务 IE弹出框

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

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

@ -29,7 +29,7 @@
var injectSearchSearchStop = BI.Searcher.prototype._stopSearch;
var injectTooltipsShow = BI.TooltipsController.prototype.show;
var injectSwitcherPopup = BI.Switcher.prototype.populate;
var injectSwitcheradjustView = BI.Switcher.prototype.adjustView;
var injectSwitcherAdjustView = BI.Switcher.prototype.adjustView;
var injectCreate = BI.createWidget;
var callback = function () {};
@ -357,7 +357,7 @@
}
BI.Searcher.prototype._stopSearch = function () {
injectSearchSearchStop.call(this, arguments);
injectSearchSearchStop.apply(this, arguments);
if (this.popupView && this.popupView.element[0].parentElement) {
this.popupView.element[0].parentElement.style.transform = "";
this.popupView.element[0].parentElement.style.transformOrigin = "";
@ -365,8 +365,8 @@
}
// switcher
BI.Switcher.prototype.populate = function () {
injectSwitcherPopup.call(this, arguments);
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";
@ -375,7 +375,7 @@
}
}
BI.Switcher.prototype.adjustView = function () {
injectSwitcheradjustView.call(this, arguments);
injectSwitcherAdjustView.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";
@ -491,7 +491,7 @@
callback = function () {}
BI.Switcher.prototype.populate = injectSwitcherPopup;
BI.Switcher.prototype.adjustView = injectSwitcheradjustView;
BI.Switcher.prototype.adjustView = injectSwitcherAdjustView;
BI.TooltipsController.prototype.show = injectTooltipsShow;
document.body.onmousedown = null;

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

@ -29,7 +29,7 @@
var injectSearchSearchStop = BI.Searcher.prototype._stopSearch;
var injectTooltipsShow = BI.TooltipsController.prototype.show;
var injectSwitcherPopup = BI.Switcher.prototype.populate;
var injectSwitcheradjustView = BI.Switcher.prototype.adjustView;
var injectSwitcherAdjustView = BI.Switcher.prototype.adjustView;
var injectCreate = BI.createWidget;
var callback = function () {};
@ -357,7 +357,7 @@
}
BI.Searcher.prototype._stopSearch = function () {
injectSearchSearchStop.call(this, arguments);
injectSearchSearchStop.apply(this, arguments);
if (this.popupView && this.popupView.element[0].parentElement) {
this.popupView.element[0].parentElement.style.transform = "";
this.popupView.element[0].parentElement.style.transformOrigin = "";
@ -365,8 +365,8 @@
}
// switcher
BI.Switcher.prototype.populate = function () {
injectSwitcherPopup.call(this, arguments);
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";
@ -375,7 +375,7 @@
}
}
BI.Switcher.prototype.adjustView = function () {
injectSwitcheradjustView.call(this, arguments);
injectSwitcherAdjustView.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";
@ -491,7 +491,7 @@
callback = function () {}
BI.Switcher.prototype.populate = injectSwitcherPopup;
BI.Switcher.prototype.adjustView = injectSwitcheradjustView;
BI.Switcher.prototype.adjustView = injectSwitcherAdjustView;
BI.TooltipsController.prototype.show = injectTooltipsShow;
document.body.onmousedown = null;

Loading…
Cancel
Save