Commit 4f884956 authored by youjie's avatar youjie

no message

parent 4232fce3
......@@ -785,10 +785,12 @@ export default {
let tw = parseFloat(
this.$refs.diyContext.getBoundingClientRect().width
) / 1123.0
if(this.$q.platform.is.mobile){
let zoombox = document.querySelector("#setZoom");
let div = zoombox.getElementsByTagName("div")[0]
div.style.zoom = document.documentElement.clientWidth/980.0
if($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?1:document.documentElement.clientWidth/1123.0
}
}
this.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2);
......@@ -921,4 +923,7 @@ export default {
line-height: 58px;
opacity: 0;
}
#setZoom>div{
zoom: calc(100 / 1000)
}
</style>
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