pari: trunk r1064 - /trunk/config/cfgbasic.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Jun 7 13:40:52 MST 2007


Author: pari
Date: Thu Jun  7 15:40:51 2007
New Revision: 1064

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1064
Log:
fixing the height of mainscreen

Modified:
    trunk/config/cfgbasic.html

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=1064&r1=1063&r2=1064
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Thu Jun  7 15:40:51 2007
@@ -37,19 +37,19 @@
 
 function fit_toScreen(){
 	var t = ASTGUI.displayHeight();
+	var minimumheight = 60;
 	var c =_$('configpanel'); 
 	c.WIH = t;
-	_$('mainscreen').style.height = (t - 70);
 	_$('TOP_MAINTABLE').rows[1].cells[0].height = (t - 70) ;
 	var pnameheight = 22;
 	c.pnameheight = pnameheight;
 	var panels = returnpanels();
 	var pheight = (( t - 70)  - (pnameheight*panels.length) ) ;
-	if(pheight > 0){
+	if(pheight > minimumheight){
 		c.pheight = pheight;
 	}else{
-		pheight = 0;
-		c.pheight = 0 ;
+		pheight = minimumheight;
+		c.pheight = minimumheight ;
 	}
 
 	if( c.childNodes.length ){
@@ -61,6 +61,8 @@
 			}
 		}
 	}
+
+	setTimeout( function(){_$('mainscreen').style.height = (panels.length * 22) + pheight ;}, 1500 );
 }
 
 function createpanels(){



More information about the asterisk-gui-commits mailing list