Skip to content

Commit b54cc34

Browse files
committed
fix(core): Column Menu Hidden by Hiding Column
Fixes the column menu being hidden when columns are removed. Closes #3953
1 parent 7b4cbe5 commit b54cc34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/js/core/directives/ui-grid-header-cell.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@
223223
}
224224
contents.addClass(classAdded);
225225

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

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

0 commit comments

Comments
 (0)