|
|
@ -43,14 +43,12 @@ |
|
|
|
function transformScale() { |
|
|
|
function transformScale() { |
|
|
|
var bounds = getScaleBounds(); |
|
|
|
var bounds = getScaleBounds(); |
|
|
|
scale = bounds.scale; |
|
|
|
scale = bounds.scale; |
|
|
|
document.body.style.position = "relative"; |
|
|
|
|
|
|
|
document.body.style.width = bounds.width + "px"; |
|
|
|
document.body.style.width = bounds.width + "px"; |
|
|
|
document.body.style.height = bounds.height + "px"; |
|
|
|
document.body.style.height = bounds.height + "px"; |
|
|
|
document.body.style.transform = "scale(" + bounds.scale+ ")"; |
|
|
|
document.body.style.transform = "scale(" + bounds.scale+ ")"; |
|
|
|
document.body.style.transformOrigin = "top left"; |
|
|
|
document.body.style.transformOrigin = "top left"; |
|
|
|
document.body.style["-ms-transform"] = "scale(" + bounds.scale+ ")"; |
|
|
|
document.body.style["-ms-transform"] = "scale(" + bounds.scale+ ")"; |
|
|
|
document.body.style["-ms-transform-origin"] = "top left"; |
|
|
|
document.body.style["-ms-transform-origin"] = "top left"; |
|
|
|
document.body.style.top = transformY + "px"; |
|
|
|
|
|
|
|
html.style.overflowY = "auto"; |
|
|
|
html.style.overflowY = "auto"; |
|
|
|
html.style.backgroundColor = document.getElementsByClassName('bi-theme-dark').length === 0 ? "#2c3d59" : "#ffffff"; |
|
|
|
html.style.backgroundColor = document.getElementsByClassName('bi-theme-dark').length === 0 ? "#2c3d59" : "#ffffff"; |
|
|
|
|
|
|
|
|
|
|
@ -63,6 +61,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
// document.body.style.height = (bounds.height * scale) + "px";
|
|
|
|
// document.body.style.height = (bounds.height * scale) + "px";
|
|
|
|
// document.body.style.overflow = "hidden";
|
|
|
|
// document.body.style.overflow = "hidden";
|
|
|
|
|
|
|
|
document.body.style.top = transformY + "px"; |
|
|
|
window.scale = window.devicePixelRatio * scale; |
|
|
|
window.scale = window.devicePixelRatio * scale; |
|
|
|
// scaleFixed();
|
|
|
|
// scaleFixed();
|
|
|
|
} |
|
|
|
} |
|
|
@ -261,8 +260,8 @@ |
|
|
|
if (BI.isIE()) { |
|
|
|
if (BI.isIE()) { |
|
|
|
BI.Combo.prototype.adjustHeight = adjustHeight; |
|
|
|
BI.Combo.prototype.adjustHeight = adjustHeight; |
|
|
|
BI.Tooltips.show = injectToolTipShow; |
|
|
|
BI.Tooltips.show = injectToolTipShow; |
|
|
|
jQuery.fn.outerWidth = injectOuterWidth; |
|
|
|
// jQuery.fn.outerWidth = injectOuterWidth;
|
|
|
|
jQuery.fn.outerHeight = injectOuterHeight; |
|
|
|
// jQuery.fn.outerHeight = injectOuterHeight;
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
document.body.onmousedown = null; |
|
|
|
document.body.onmousedown = null; |
|
|
@ -278,7 +277,7 @@ |
|
|
|
}, 30); |
|
|
|
}, 30); |
|
|
|
|
|
|
|
|
|
|
|
function updateScale () { |
|
|
|
function updateScale () { |
|
|
|
if (html.getBoundingClientRect().width !== wrapper.getBoundingClientRect().width) { |
|
|
|
if (html.getBoundingClientRect().width !== document.body.getBoundingClientRect().width) { |
|
|
|
selectHandler(); |
|
|
|
selectHandler(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|