From b6947d0260701bc93bb154d97bc8711adc76e33e Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 25 Jun 2014 07:53:50 -0400 Subject: [PATCH] 2.0 style changes Fixed job tab page resizing. If the viewport width > 1000, then calc box sizes and max # of rows. --- awx/ui/static/js/controllers/Jobs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/controllers/Jobs.js b/awx/ui/static/js/controllers/Jobs.js index b59990d4aa..0dc3a99914 100644 --- a/awx/ui/static/js/controllers/Jobs.js +++ b/awx/ui/static/js/controllers/Jobs.js @@ -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)); });