浏览代码

form组件高度自动计算逻辑开关始终开启

zhuth 6 年之前
父节点
当前提交
d36e8a4b80
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      kanban-client/app/src/Form/Form.jsx

+ 3 - 3
kanban-client/app/src/Form/Form.jsx

@@ -132,9 +132,9 @@ export default class Form extends React.Component {
         let node = this.refs.body;
         let thead = node.getElementsByTagName('thead')[0] || { offsetHeight: 0 };
         let tbody = node.getElementsByTagName('tbody')[0];
-        if (tbody.offsetHeight + thead.offsetHeight <= (node.offsetHeight + 5)) {
-            return;
-        }
+        // if (tbody.offsetHeight + thead.offsetHeight <= (node.offsetHeight + 5)) {
+        //     return;
+        // }
         let trs = tbody.getElementsByTagName('tr');
         let rowHeight = (node.offsetHeight - thead.offsetHeight) / trs.length;
         for (let i = 0; i < trs.length; i++) {