2.0 style changes

Fixed job tab page resizing. If the viewport width > 1000, then calc box sizes and max # of rows.
This commit is contained in:
Chris Houseknecht 2014-06-25 07:53:50 -04:00
parent 0bef303c97
commit b6947d0260

View File

@ -237,12 +237,12 @@ function JobsListController ($scope, $compile, $routeParams, ClearScope, Breadcr
// Set the height of each container and calc max number of rows containers can hold
function setHeight() {
var docw = $(window).width(),
doch = $(window).height(),
//doch = $(window).height(),
available_height,
search_row, page_row, height, header, row_height;
if (docw > 1240 && doch > 800) {
if (docw > 1000) {
// customize the container height and # of rows based on available viewport height
available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - $('#job-status').outerHeight() - 80;
available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - 80;
$('.jobs-list-container').each(function() {
$(this).height(Math.floor(available_height / 2));
});