|
|
|
@ -137,9 +137,23 @@
|
|
|
|
|
fixedWrapper.style.height = "100%"; |
|
|
|
|
|
|
|
|
|
scale = 1; |
|
|
|
|
if (BI.isIE()) { |
|
|
|
|
removeDomScale(document.body); |
|
|
|
|
} |
|
|
|
|
window.scale = window.devicePixelRatio; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function removeDomScale(dom) { |
|
|
|
|
var style = dom.style; |
|
|
|
|
if (style.transform.includes("scale") && (style.transformOrigin === "top left" || style.transformOrigin === "left top")) { |
|
|
|
|
style.transform = ""; |
|
|
|
|
style.transformOrigin = ""; |
|
|
|
|
} |
|
|
|
|
BI.each(dom.children, function (idx, child) { |
|
|
|
|
removeDomScale(child); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 获取缩放倍数,原模板宽高
|
|
|
|
|
function getScaleBounds(ratio) { |
|
|
|
|
var widgets = BI.designConfigure.widgets, |
|
|
|
|