Browse Source

[完善] 正确计算可视区域宽度

develop
陈鹏飞 4 years ago
parent
commit
09a9dd3362
  1. 4
      src/app/ui/collection-tools/collection-tools.component.ts

4
src/app/ui/collection-tools/collection-tools.component.ts

@ -929,7 +929,9 @@ export class CollectionToolsComponent implements OnInit {
backGroundScale () {
let that = this
let dad = document.querySelector('.functionalDomainContent').clientWidth
let imgWidth = dad - 460 //可是区域内 宽度
let left = document.querySelector('.functionalDomainLeft').clientWidth
let right = document.querySelector('.functionalDomainRight').clientWidth
let imgWidth = dad - left - right//可是区域内 宽度
let img = new Image()
img.src = this.selectingSitePlan.imageUrl;
img.onload = function(){

Loading…
Cancel
Save