From b4accbbcb59f6c15b03164302af89e79de8ae664 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 4 Oct 2013 11:58:13 +0000 Subject: [PATCH] idots now also automatic resizes its application area like Stylite template, so eg. et2 nextmatch can fill full area --- phpgwapi/templates/idots/css/traditional.css | 5 +++++ phpgwapi/templates/idots/js/idots.js | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/phpgwapi/templates/idots/css/traditional.css b/phpgwapi/templates/idots/css/traditional.css index 087c452ba2..229a05d442 100755 --- a/phpgwapi/templates/idots/css/traditional.css +++ b/phpgwapi/templates/idots/css/traditional.css @@ -3,6 +3,11 @@ allowed attributes: font-family,font-size,color,font-weight */ +body +{ + overflow-x: hidden; +} + body,td,textarea { font-family: Verdana, Arial, Helvetica, sans-serif; diff --git a/phpgwapi/templates/idots/js/idots.js b/phpgwapi/templates/idots/js/idots.js index 829aa84811..7e6146517c 100644 --- a/phpgwapi/templates/idots/js/idots.js +++ b/phpgwapi/templates/idots/js/idots.js @@ -41,4 +41,19 @@ } } } + + /** + * Installing resize handler for divAppbox and et2_container, as et2 otherwise can not correctly size nextmatch + */ + $j(function() + { + $j(window).resize(function(){ + var appbox_height = $j(window).height()-$j('#topmenu').height()-$j('#divAppIconBar').height()- + $j('#divStatusBar').height()-$j('#divAppboxHeader').height()-$j('#divPoweredBy').height()-20; + //console.log('setting height of '+appbox_height); + $j('#divAppbox').css('min-height', appbox_height+'px'); + $j('.et2_container').height(appbox_height); + }); + $j(window).resize(); + }); })();