Browse Source

器件选型筛选样式调整

yangc 8 years ago
parent
commit
9950816655
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/product/CategoryProperty.vue

+ 2 - 1
components/product/CategoryProperty.vue

@@ -142,7 +142,8 @@
         this.selectedProperties = pro
         let dom = document.getElementsByClassName('drop-down-list')[0]
         let list = document.getElementsByClassName('list-menu')[index]
-        let left = list.getBoundingClientRect().left - 169
+        let content = document.getElementsByClassName('container')[0]
+        let left = list.getBoundingClientRect().left - content.offsetLeft
         dom.setAttribute('style', 'left: ' + left + 'px')
         this.list_exp_flag = true
       },