Skip to content

Commit

Permalink
fix(core): Column Menu Hidden by Hiding Column
Browse files Browse the repository at this point in the history
Fixes the column menu being hidden when columns are
removed.

Closes #3953
  • Loading branch information
JLLeitschuh committed Nov 24, 2015
1 parent 7b4cbe5 commit b54cc34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/core/directives/ui-grid-header-cell.js
Expand Up @@ -223,8 +223,10 @@
}
contents.addClass(classAdded);

var rightMostContainer = $scope.grid.renderContainers['right'] ? $scope.grid.renderContainers['right'] : $scope.grid.renderContainers['body'];
$scope.isLastCol = ( $scope.col === rightMostContainer.visibleColumnCache[ rightMostContainer.visibleColumnCache.length - 1 ] );
$timeout(function (){
var rightMostContainer = $scope.grid.renderContainers['right'] ? $scope.grid.renderContainers['right'] : $scope.grid.renderContainers['body'];
$scope.isLastCol = ( $scope.col === rightMostContainer.visibleColumnCache[ rightMostContainer.visibleColumnCache.length - 1 ] );
});

// Figure out whether this column is sortable or not
if (uiGridCtrl.grid.options.enableSorting && $scope.col.enableSorting) {
Expand Down

0 comments on commit b54cc34

Please sign in to comment.