fix: set rowHeight to 24 when dom is not loaded

This commit is contained in:
gx 2021-03-24 15:08:51 +08:00
parent 7717fcfb46
commit f21c9a03ab
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class Tree extends React.Component {
this.hasCalculateRowHeight = true;
let rowHeight = treenodes.getBoundingClientRect().height;
this.store.setState({
rowHeight: rowHeight
rowHeight: rowHeight || 24
});
}