Commit 4f884956 authored by youjie's avatar youjie

no message

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