idots now also automatic resizes its application area like Stylite template, so eg. et2 nextmatch can fill full area

This commit is contained in:
Ralf Becker 2013-10-04 11:58:13 +00:00
parent 65223eb80a
commit b4accbbcb5
2 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -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();
});
})();