b=124241 Remove all fixed size attributes from XUL

r=rangansen sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@114328 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com 2002-02-12 23:16:07 +00:00
parent c228395ca2
commit 9e38649c04
16 changed files with 10 additions and 94 deletions

View File

@ -38,7 +38,7 @@
</treecolgroup>
<treechildren id="chainDump"/>
</tree>
<outliner id="prettyDumpOutliner" class="inset" style="height:150px"
<outliner id="prettyDumpOutliner" class="inset" style="height: 15em"
onselect="displaySelected();">
<outlinercols>
<outlinercol flex ="1" id="certDataCol" label="&certmgr.details.label;"

View File

@ -31,8 +31,7 @@
<window id="ssl_warning" title="&chooseToken.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="360"
width="400"
style="width: 40em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>

View File

@ -100,15 +100,6 @@ function setWindowName()
}
setText("impact",impact);
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
windowReference.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
windowReference.setAttribute("height",window.innerHeight + 40);
}
function doOK()

View File

@ -50,16 +50,6 @@ function onLoad()
setText("message2", message2);
//Set the focus so key press events work
document.getElementById('ok-button').focus();
var xulWindow = document.getElementById("domainMismatch");
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("height",window.innerHeight + 40);
}
function viewCert()

View File

@ -22,7 +22,7 @@
<window id="domainMismatch" title="&domainMismatch.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="320"
style="width: 32em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>

View File

@ -48,15 +48,6 @@ function onLoad()
[ caName ],
1);
setText("message2", message2);
var xulWindow = document.getElementById("download_cert");
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("height",window.innerHeight + 40);
}
function viewCert()

View File

@ -27,8 +27,7 @@
<window id="download_cert" title="&downloadCert.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="320"
width="460"
style="width: 46em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>

View File

@ -69,16 +69,6 @@ function setWindowName()
} else {
objsign.setAttribute("checked", "false");
}
var xulWindow = document.getElementById("editCaCert");
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("height",window.innerHeight + 70);
}
function doOK()
@ -144,15 +134,6 @@ function doLoadForSSLCert()
} else {
trustssl.radioGroup.selectedItem = notrustssl;
}
var xulWindow = document.getElementById("editWebsiteCert");
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("height",window.innerHeight + 70);
}
function doSSLOK()

View File

@ -45,17 +45,6 @@ function onLoad()
var msg = bundle.formatStringFromName("escrowFinalMessage",
[dispName], 1);
setText("message1",msg);
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
var windowReference= document.getElementById('escrowWarnDialog');
windowReference.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
windowReference.setAttribute("height",window.innerHeight + 30);
}
function doOK()

View File

@ -22,7 +22,7 @@
<window id="escrowWarnDialog" title="&escrowWarn.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="400"
style="width: 40em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>

View File

@ -29,8 +29,7 @@
<window id="getp12password" title="&pkcs12.getpassword.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="200"
width="300"
style="width: 30em;"
onload="onP12Load();">
<script type="application/x-javascript" src="chrome://pippki/content/password.js"/>

View File

@ -29,8 +29,7 @@
<window id="getpassword" title="&getPassword.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="320"
width="300"
style="width: 30em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://pippki/content/password.js"/>

View File

@ -60,15 +60,6 @@ function onLoad()
setText("message", message);
setText("notRecognized", notRecognized);
var windowReference = document.getElementById('ssl_warning');
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
windowReference.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
windowReference.setAttribute("height",window.innerHeight + 40);
}
function doHelpButton()

View File

@ -48,18 +48,6 @@ function onLoad()
setText("message2", message2);
//Set the focus so key press events work.
document.getElementById('ok-button').focus();
var xulWindow = document.getElementById("serverCertExpired");
var wdth = window.innerWidth; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("width",window.innerWidth + 30);
var hght = window.innerHeight; // THIS IS NEEDED,
window.sizeToContent();
xulWindow.setAttribute("height",window.innerHeight + 40);
}
function doOK()

View File

@ -22,7 +22,7 @@
<window id="serverCertExpired"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="300"
style="width: 30em;"
onload="onLoad();">
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>

View File

@ -29,8 +29,7 @@
<window id="setp12password" title="&pkcs12.setpassword.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="480"
width="360"
style="width: 48em;"
onload="onP12Load();">
<script type="application/x-javascript" src="chrome://pippki/content/password.js"/>
@ -65,7 +64,7 @@
<column style="margin: 5px;">
<progressmeter flex="1" id="pwmeter" mode="determined" value="0%"
orient="horizontal" progresstext="Loading"
width="200" style="foreground-color: red"/>
style="width: 20em; foreground-color: red"/>
</column>
</columns>
</grid>