[icinga-checkins] icinga.org: icingaweb2/feature/filter-styles: StatusBar: Fix status bar position while fixing controls

git at icinga.org git at icinga.org
Wed Nov 9 15:06:44 CET 2016


Module: icingaweb2
Branch: feature/filter-styles
Commit: 41434b57661fc27066eb7793adfbbad745a91a10
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=41434b57661fc27066eb7793adfbbad745a91a10

Author: Florian Strohmaier <florian.strohmaier at netways.de>
Date:   Wed Nov  9 15:06:29 2016 +0100

StatusBar: Fix status bar position while fixing controls

---

 public/js/icinga/ui.js |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js
index feaabab..1c04362 100644
--- a/public/js/icinga/ui.js
+++ b/public/js/icinga/ui.js
@@ -657,6 +657,7 @@
             $container.find('.controls').each(function() {
                 var $controls = $(this);
                 var $fakeControls = $controls.next('.fake-controls');
+                var $statusBar = $controls.siblings('.status-bar');
 
                 $controls.css({
                     top: $container.offset().top,
@@ -664,6 +665,15 @@
                 });
 
                 $fakeControls.height($controls.height());
+
+                $statusBar.css({
+                    left: $container.offset().left,
+                    width: $container.width()
+                });
+
+                $container.css({
+                    paddingBottom: $statusBar.outerHeight(true)
+                });
             });
         },
 



More information about the icinga-checkins mailing list