mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
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:
parent
0bef303c97
commit
b6947d0260
@ -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));
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user