Skip to content

Commit

Permalink
Fixed #1850 - Added dynamic scrollHeight support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandu committed Apr 15, 2021
1 parent ec0cf59 commit 70ab3f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/treetable/TreeTableScrollableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export class TreeTableScrollableView extends Component {
}
}

componentDidUpdate() {
this.setScrollHeight();
}

setScrollHeight() {
if(this.props.scrollHeight) {
if(this.props.scrollHeight.indexOf('%') !== -1) {
Expand Down

0 comments on commit 70ab3f6

Please sign in to comment.