You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on the left-most column's menu button, the menu will show.
Click on any other column's menu button.
You will get an exception in your console like so:
TypeError: Cannot read property 'lastMenuWidth' of undefined
at Object.service.repositionMenu (http://ui-grid.info/release/ui-grid-unstable.js:430:31)
at Scope.$scope.showMenu (http://ui-grid.info/release/ui-grid-unstable.js:517:35)
at Scope.$scope.toggleMenu (http://ui-grid.info/release/ui-grid-unstable.js:896:46)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:10567:21
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:18627:17
at Scope.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:28)
at Scope.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12510:23)
at HTMLDivElement.<anonymous> (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:18626:21)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:2780:10
at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:330:20)
It is probably happening because since the column's menu has not been shown yet, it has no lastMenuWidth property defined. There probably needs to be a typeof($scope.col.lastMenuWidth) === 'undefined' || $scope.col.lastMenuWidth === null check, or something like that.
The text was updated successfully, but these errors were encountered:
c0bra
changed the title
Column menu repositioning throws exception when unsortable column menu button is clicked
Column menu repositioning throws exception when second column menu button is clicked
Oct 6, 2014
To reproduce:
You will get an exception in your console like so:
It is probably happening because since the column's menu has not been shown yet, it has no
lastMenuWidth
property defined. There probably needs to be atypeof($scope.col.lastMenuWidth) === 'undefined' || $scope.col.lastMenuWidth === null
check, or something like that.The text was updated successfully, but these errors were encountered: