Commit 650a6209 authored by youjie's avatar youjie

no message

parent 138bb233
......@@ -787,13 +787,17 @@ export default {
let tw = parseFloat(
this.$refs.diyContext.getBoundingClientRect().width
) / 1123.0
if(this.$q.platform.is.mobile){
let divArr = document.querySelectorAll("#setZoom>div")
for(let i=0;i<divArr.length;i++){
let div = divArr[i]
div.style.zoom = div.offsetWidth>1000?0.999:document.documentElement.clientWidth/1123.0
if(this.$q.platform.is.mobile){
div.style.zoom = div.offsetWidth>1000?0.999:document.documentElement.clientWidth/1123.0
}else{
div.style.zoom = 1
}
}
}
this.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment