From 2188b4df8ef30de2917f16d11b37ca635b179e9b Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Mon, 22 Aug 2016 13:56:52 +0200 Subject: just use fullscreen to mitigate the positioning bugs. --- modules-available/locations/templates/location-subnets.html | 6 +++++- modules-available/roomplanner/js/init.js | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 70b21113..bc507107 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -61,7 +61,11 @@
{{#isLeaf}} - {{lang_editRoomplan}} + + {{lang_editRoomplan}} + {{/isLeaf}}
diff --git a/modules-available/roomplanner/js/init.js b/modules-available/roomplanner/js/init.js index 825a5245..87f6c831 100644 --- a/modules-available/roomplanner/js/init.js +++ b/modules-available/roomplanner/js/init.js @@ -3,6 +3,12 @@ function initRoomplanner() { console.log('initRoomplanner'); + + /* make it fullscreen, otherwise there are too many positioning bugs */ + $('.sidebar-bg, .navbar').hide(); + $('#mainpage').css('position', 'static').css('width', '100%').css('left', '0px'); + + $('#drawarea').css('top',(-roomplanner.settings.scale*10)+'px'); $('#drawarea').css('left',(-roomplanner.settings.scale*10)+'px'); -- cgit v1.2.3-55-g7522