I am using 50px as height of each row in my grid and setting the height using the following logic:
$http.get(url)
.success(function(data) {
$scope.gridOptions.data = data;
heightGrid = ($scope.gridOptions.data.length * 50 + 35) + 'px';
angular.element('#gridContainer').height(heightGrid);
});
The problem I am facing is the last row of the grid is not shown until some opertaion is performed like a window resize, inspecting the web page or sorting the contents of ui grid. As per my observation on this behaviour, I noticed that the div having the class "ui-grid-content-wrapper" is getting assigned 26px less than the height assigned until any one of the above mentioned event occurs. ost that everything works fine. It just happens for the first time.
Please share a solution if anyone has faced this.