diff options
author | Christian Klinger | 2016-08-22 13:56:52 +0200 |
---|---|---|
committer | Christian Klinger | 2016-08-22 13:56:52 +0200 |
commit | 2188b4df8ef30de2917f16d11b37ca635b179e9b (patch) | |
tree | 5a597878efcbe202895dea3ea009ccfedb285c8d /modules-available/roomplanner/js | |
parent | Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff) | |
download | slx-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.js | 6 |
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'); |