소스 검색

横向滚动时右侧弹窗部分消失bug修改

zhouna 5 년 전
부모
커밋
4366e90854
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/EMRContainer/index.jsx

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

@@ -25,13 +25,13 @@ class EMRContainer extends Component {
         const height = getWindowInnerHeight() - 175;
         const width = getWindowInnerWidth() - 20;
         this.$cont.current.style.height = height+"px";
-        this.$cont.current.style.width = width + "px";
+        this.$cont.current.style.minWidth = width + "px";
         windowEventHandler('resize', ()=>{
           const height = getWindowInnerHeight() - 175;
           const width = getWindowInnerWidth() - 20;
           if(this.$cont.current){
             this.$cont.current.style.height = height + "px";
-            this.$cont.current.style.width = width + "px";
+            this.$cont.current.style.minWidth = width + "px";
           }
         });
     }