Browse Source

医学知识搜索高度调整

zhouna 5 năm trước cách đây
mục cha
commit
f437d3caf9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/components/MedicalInfo/index.jsx

+ 2 - 2
src/components/MedicalInfo/index.jsx

@@ -28,7 +28,7 @@ class MedicalInfo extends Component {
         const that = this;
         if(searchResult&&searchResult.length>0){
           setTimeout(function(){
-            that.$ul.current.style.height = getWindowInnerHeight()-248+'px';
+            that.$ul.current.style.height = getWindowInnerHeight()-278+'px';
           },100);
         }
         return searchResult && searchResult.map((item) => {
@@ -115,7 +115,7 @@ class MedicalInfo extends Component {
         this.$cont.current.style.height = height+"px";
       }
       if(this.$ul.current){
-        const height = getWindowInnerHeight()-248;
+        const height = getWindowInnerHeight()-278;
         this.$ul.current.style.height = height+"px";
       }
     });