fix: set rowHeight to 24 when dom is not loaded
This commit is contained in:
parent
7717fcfb46
commit
f21c9a03ab
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue