Job stdout refactor

Fixed stdout container to use the the new stdout style sheet. Controller for stdout now correctly calcs height of the content container.
This commit is contained in:
Chris Houseknecht
2014-06-23 16:54:46 -04:00
parent 95ba711fc1
commit 8752c71e38
5 changed files with 8 additions and 9 deletions

View File

@@ -53,14 +53,14 @@ function JobStdoutController ($rootScope, $scope, $compile, $routeParams, ClearS
});
function resizeToFit() {
available_height = $(window).height() - $('.main-menu').outerHeight() - $('#main_tabs').outerHeight() -
$('#breadcrumb-container').outerHeight() - $('.site-footer').outerHeight() * 2;
if ($(window).width() < 768) {
available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() -
$('#breadcrumb-container').outerHeight() - 20;
/*if ($(window).width() < 768) {
available_height += 55;
}
else if ($(window).width() > 1240) {
available_height += 5;
}
}*/
$('#pre-container').height(available_height);
$('#pre-container').mCustomScrollbar("update");
}