patch to bug # 92213, r=javi, sr=hewitt.

Fixes the xul window sizing issue.
This commit is contained in:
rangansen%netscape.com 2001-08-10 01:34:51 +00:00
Родитель 05bc12b616
Коммит 29a5139e48
2 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -50,6 +50,16 @@ 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()

Просмотреть файл

@ -25,8 +25,7 @@
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
debug="false"
height="250"
width="400"
width="320"
onload="onLoad();"
>
<script src="chrome://global/content/strres.js" />
@ -45,7 +44,7 @@
<html id="message1" />
<separator/>
<html id="message2" />
<html id="message2" flex="100%"/>
<hbox>
<button id="examineCert-button" class="dialog" label="&examineCert.label;"