浏览代码

滚动调整

luolei 4 年之前
父节点
当前提交
46b331c7a6
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      src/js/qcScore.js
  2. 1 1
      src/js/utils.js

+ 2 - 0
src/js/qcScore.js

@@ -263,6 +263,7 @@ function formatInfoData(k,data){
         'border-right':0,
         'color': '#777'
       })
+      setBoxHeight()
     }else if(type&&type==2){
       $(".titleNo").css({
         'background-color': '#fff',
@@ -275,6 +276,7 @@ function formatInfoData(k,data){
         'color': '#fff',
         'border-color': '#00A1FF'
       })
+      setBoxHeight()
     }
   }
 

+ 1 - 1
src/js/utils.js

@@ -261,7 +261,7 @@ function setBoxHeight(){
   $(".content-box").height((ht-55)+'px');
   $(".flaw-table").height((ht-70)+'px');
   $(".content-ht").height((ht-120)+"px");
-  $(".scroll-table tbody").css("max-height",(ht-200)+"px")
+  $(".scroll-table tbody").css("max-height",(ht-210)+"px")
 }
 setBoxHeight();
 $(window).resize(function(){