[NIFI-2371] fix cluster page padding

This commit is contained in:
Scott Aslan 2016-07-28 10:55:04 -04:00 committed by joewitt
parent a73c8bba30
commit da5e468489
2 changed files with 21 additions and 17 deletions

View File

@ -41,9 +41,9 @@
#cluster-refresh-container {
position: absolute;
width: 100%;
bottom: 0px;
left: 20px;
right: 20px;
}
#cluster-loading-container {

View File

@ -116,6 +116,26 @@ nf.Cluster = (function () {
// load the current user
loadCurrentUser().done(function () {
var setBodySize = function () {
//alter styles if we're not in the shell
if (top === window) {
$('body').css({
'height': $(window).height() + 'px',
'width': $(window).width() + 'px'
});
$('#cluster').css('margin', 40);
$('#cluster-table').css('bottom', 127);
$('#cluster-refresh-container').css('margin', 40);
}
// configure the initial grid height
nf.ClusterTable.resetTableSize();
};
// set the initial size
setBodySize();
// create the counters table
nf.ClusterTable.init();
@ -123,22 +143,6 @@ nf.Cluster = (function () {
nf.ClusterTable.loadClusterTable().done(function () {
// once the table is initialized, finish initializing the page
initializeClusterPage().done(function () {
var setBodySize = function () {
//alter styles if we're not in the shell
if (top === window) {
$('body').css({
'height': $(window).height() + 'px',
'width': $(window).width() + 'px'
});
$('#cluster').css('margin', 40);
$('#cluster-table').css('bottom', 127);
$('#cluster-refresh-container').css('margin', 40);
}
// configure the initial grid height
nf.ClusterTable.resetTableSize();
};
// get the about details
$.ajax({