From 7ee192e77441d3b8855b034c59b983cb6b8b552f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 18 Jun 2015 13:40:46 +0200 Subject: [PATCH] fullscreen: no more fixes controls and padding --- public/css/icinga/layout-structure.less | 4 ++++ public/js/icinga/ui.js | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/public/css/icinga/layout-structure.less b/public/css/icinga/layout-structure.less index 8027aa644..587ddac5e 100644 --- a/public/css/icinga/layout-structure.less +++ b/public/css/icinga/layout-structure.less @@ -85,6 +85,10 @@ html { display: none; } + .container .controls { + padding: 0; + } + .controls > ul.tabs { margin-top: 0; height: 1.5em; diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index b3ab6ee92..cd5290f32 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -706,7 +706,7 @@ }, initializeControls: function (parent) { - if ($(parent).closest('.dashboard').length) { + if ($(parent).closest('.dashboard').length || $('#layout').hasClass('fullscreen-layout')) { return; } @@ -736,6 +736,9 @@ fixControls: function ($parent) { var self = this; + if ($('#layout').hasClass('fullscreen-layout')) { + return; + } if ('undefined' === typeof $parent) {