summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/js
diff options
context:
space:
mode:
authorChristian Klinger2016-08-22 13:56:52 +0200
committerChristian Klinger2016-08-22 13:56:52 +0200
commit2188b4df8ef30de2917f16d11b37ca635b179e9b (patch)
tree5a597878efcbe202895dea3ea009ccfedb285c8d /modules-available/roomplanner/js
parentMerge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff)
downloadslx-admin-2188b4df8ef30de2917f16d11b37ca635b179e9b.tar.gz
slx-admin-2188b4df8ef30de2917f16d11b37ca635b179e9b.tar.xz
slx-admin-2188b4df8ef30de2917f16d11b37ca635b179e9b.zip
just use fullscreen to mitigate the positioning bugs.
Diffstat (limited to 'modules-available/roomplanner/js')
-rw-r--r--modules-available/roomplanner/js/init.js6
1 files changed, 6 insertions, 0 deletions
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');