Browse Source

模板高度计算

luolei 5 years atrás
parent
commit
004d9e3657
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/TemplateItems/index.jsx

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

@@ -25,11 +25,11 @@ class TemplateItems extends React.Component {
         this.clear = this.clear.bind(this);
     }  
     componentDidMount(){
-        const height = getWindowInnerHeight()-235;
+        const height = getWindowInnerHeight()-216;
         this.$cont.current.style.height = height+"px";
         windowEventHandler('resize', ()=>{
             if(this.$cont.current){
-                const height = getWindowInnerHeight()-235;
+                const height = getWindowInnerHeight()-216;
                 this.$cont.current.style.height = height+"px";
             }
         });