소스 검색

对比高度问题

zhuliu 2 년 전
부모
커밋
5f62ca3425
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      RMS-FrontEnd/src/views/report/FTO/FTOPage/components/ContrasrProduct.vue

+ 1 - 1
RMS-FrontEnd/src/views/report/FTO/FTOPage/components/ContrasrProduct.vue

@@ -347,7 +347,7 @@ export default {
       if (val == true) {
         this.width = '50%'
         this.$nextTick(()=>{
-            this.$set(this,'height',document.getElementsByClassName('patent-articles-content-left')[0].offsetHeight +20 + 'px')
+            this.$set(this,'height','calc(100% - 50px)')
             
          })
       } else {