pari: trunk r1005 - /trunk/config/cfgbasic.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed May 30 17:18:36 MST 2007
Author: pari
Date: Wed May 30 19:18:36 2007
New Revision: 1005
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1005
Log:
attempt for making the GUI free from the hardcoded 1024x768 resolution, more commits on this will follow soon
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=1005&r1=1004&r2=1005
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Wed May 30 19:18:36 2007
@@ -41,7 +41,7 @@
var a = _$('configpanel');
var pnameheight = 22;
var panels = returnpanels();
- var pheight = (503 - (pnameheight*panels.length) ) ;
+ var pheight = ((window.innerHeight - 70) - (pnameheight*panels.length) ) ;
a.pheight = pheight;
var this_id ;
for( var r=0; r < panels.length; r++ ){
@@ -175,7 +175,7 @@
loggedon = 1;
var panels = returnpanels();
var pnameheight = 22;
- var pheight = (503 - (pnameheight*panels.length) ) ;
+ var pheight = ((window.innerHeight - 70) - (pnameheight*panels.length) ) ;
for( var r=0; r < panels.length; r++ ){
t = panels[r].page.split(".html")[0];
_$( t + "_U" ).style.height = "1px";
@@ -201,6 +201,8 @@
}
function registerajax() {
+ top._$('mainscreen').style.height = (window.innerHeight - 70);
+ _$('TOP_MAINTABLE').rows[1].cells[0].height = (window.innerHeight) - 70;
pao();
astmanEngine = new Astman();
astmanEngine.setURL(asterisk_rawmanPath );
@@ -277,7 +279,7 @@
<link rel="shortcut icon" href="images/favicon.ico" />
</head>
<body onload="registerajax()" topmargin=1>
-<table align="center" bgcolor="#dddddd" border="0" cellpadding="0" cellspacing="0" height="570" width="950">
+<table align="center" bgcolor="#dddddd" border="0" cellpadding="0" cellspacing="0" width="950" id="TOP_MAINTABLE">
<tbody>
<tr height="47">
<td align="right" bgcolor="white" height="47" valign="bottom" id="dimg"><img src="images/digiumlogo.gif" align="left"></td>
@@ -295,17 +297,17 @@
<input id="login_name" type="hidden">
</td>
</tr>
-<tr> <td height="505">
- <div id="configpanel" style="border-bottom: 1px solid rgb(31, 102, 155); width: 150px; height: 505px;"></div>
- </td>
- <td id="screenholder" bgcolor="#efefef" height="505" valign="top" width="550">
+<tr> <td valign=top>
+ <div id="configpanel" style="border-bottom: 1px solid rgb(31, 102, 155); width: 150px;"></div>
+ </td>
+ <td id="screenholder" bgcolor="#efefef" valign="top" width="550">
<div id="titlebar" class="mainscreenTitleBar" style="position: absolute; top: 48px;">
<span style="margin-left: 4px; font-weight: bold;">Loading Screen <img src="images/dots.gif"></span>
</div>
<div id="borderbox" class="mainscreenBorderBox" height="100%"></div>
- <iframe border="0" marginheight="0" marginwidth="0" id="mainscreen" style="position: absolute; top: 48px;" frameborder="0" height="505" scrolling="no" width="540"></iframe>
- </td>
- <td height="505" valign="top" width="250">
+ <iframe border="0" marginheight="0" marginwidth="0" id="mainscreen" style="position: absolute; top: 48px;" frameborder="0" scrolling="no" width="540"></iframe>
+ </td>
+ <td valign="top" width="250">
<div class="mainscreenTooltipBar" align="right">
<span id="reloadconfig" style="display:none">Activate Changes</span> <span id="logoutlink" style="display:none">Logout</span>
</div>
More information about the asterisk-gui-commits
mailing list