Skip to content

Commit

Permalink
fix(tree-base.js): Call updateRowHeaderWidth even when no data exists.
Browse files Browse the repository at this point in the history
Ensure row header visiblity is respected when no data is present.

fix #5430
  • Loading branch information
Portugal, Marcelo authored and Portugal, Marcelo committed Apr 24, 2018
1 parent dff19a7 commit 5a3527a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/features/tree-base/js/tree-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,13 @@
* @returns {array} the updated rows
*/
treeRows: function( renderableRows ) {
if (renderableRows.length === 0){
var grid = this;

if (renderableRows.length === 0) {
service.updateRowHeaderWidth( grid );
return renderableRows;
}

var grid = this;

grid.treeBase.tree = service.createTree( grid, renderableRows );
service.updateRowHeaderWidth( grid );

Expand Down

0 comments on commit 5a3527a

Please sign in to comment.