Fix issue with graph modules causing vertical scroll

This commit is contained in:
Joe Fiorini
2015-01-28 12:06:10 -05:00
parent 5ab6ed91fa
commit f2dbf7a559
5 changed files with 37 additions and 9 deletions

View File

@@ -86,17 +86,14 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, $log, Wait,
"margin-bottom": "15px"};
$('.graph-container').css(borderStyles);
var winHeight = $(window).height(),
available_height = winHeight - $('#main-menu-container .navbar').outerHeight() - $('#count-container').outerHeight() - 120;
$('.graph-container').height(available_height/2);
// // chart.update();
DashboardCounts({
scope: $scope,
target: 'dash-counts',
dashboard: data
});
// // chart.update();
$scope.graphData = graphData;
if ($rootScope.user_is_superuser !== true) {