From d3cd99bdfcff7d1c1c715fd5e03b1238ba47e771 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 31 Jul 2014 16:05:22 -0400 Subject: [PATCH] Min pagination size Tweaked job page to make the minimum aware of taller rows as the width of the viewport shrinks. --- awx/ui/static/js/controllers/Jobs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/Jobs.js b/awx/ui/static/js/controllers/Jobs.js index 7021f86cc4..19401eb876 100644 --- a/awx/ui/static/js/controllers/Jobs.js +++ b/awx/ui/static/js/controllers/Jobs.js @@ -216,7 +216,11 @@ function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, C if (docw > 1200) { // customize the container height and # of rows based on available viewport height available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - 80; - available_height = (available_height < 550) ? 550 : available_height; + if (docw < 1350) { + available_height = (available_height < 800) ? 800 : available_height; + } else { + available_height = (available_height < 550) ? 550 : available_height; + } $log.debug('available_height: ' + available_height); $('.jobs-list-container').each(function() { $(this).height(Math.floor(available_height / 2));