diff options
author | arkascha <github@christian-reiner.info> | 2015-02-09 18:00:04 +0300 |
---|---|---|
committer | arkascha <github@christian-reiner.info> | 2015-02-09 18:00:04 +0300 |
commit | 994d429a3d049280a9c101aa239f0c742b96207e (patch) | |
tree | 2b393f213cb758c4136e78932b7e1c2235efeffb /imprint | |
parent | 6bfd5f2c91d8fbb412cfa0f1bcc5bf7377443227 (diff) |
imprint: make app work under OC-8
Diffstat (limited to 'imprint')
-rw-r--r-- | imprint/css/content.css | 2 | ||||
-rw-r--r-- | imprint/js/content.js | 8 | ||||
-rw-r--r-- | imprint/templates/tmpl_index.php | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/imprint/css/content.css b/imprint/css/content.css index 9b7bf67a4..c886e4d05 100644 --- a/imprint/css/content.css +++ b/imprint/css/content.css @@ -29,7 +29,7 @@ /* some general content padding */ #imprint-body { - width: 100%; + overflow-y: hidden; text-align: center; } #imprint-content { diff --git a/imprint/js/content.js b/imprint/js/content.js index 2a89a7db7..7e92c8fb8 100644 --- a/imprint/js/content.js +++ b/imprint/js/content.js @@ -26,7 +26,7 @@ * @brief Client side activity library * @author Christian Reiner */ -$(document).ready(function(){ - var availableHeight = $('body#body-login').height()-$('body#body-login header').height(); - $('body#body-login div#login').css({height:availableHeight+'px'}); -}) +$(window).load(function(){ + var requiredHeight = $(window.frames[0].document).find('body').height(); + $('#imprint-frame').css({height:requiredHeight+'px'}); +}); diff --git a/imprint/templates/tmpl_index.php b/imprint/templates/tmpl_index.php index f4519ee37..6f98bd9eb 100644 --- a/imprint/templates/tmpl_index.php +++ b/imprint/templates/tmpl_index.php @@ -32,4 +32,4 @@ */ ?> -<iframe src="<?php p(\OCP\Util::linkTo('imprint','content.php'));?>" width="100%" height="100%"></iframe> +<iframe id="imprint-frame" src="<?php p(\OCP\Util::linkTo('imprint','content.php'));?>" width="100%"></iframe> |