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 angular-ui#5430
  • Loading branch information
Portugal, Marcelo authored and m4m4m4 committed Apr 24, 2018
1 parent 6a91168 commit 471dddf
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 471dddf

Please sign in to comment.