Bug# 101760 ; r=javi ; sr = hewitt ; fixing window sizing issue

git-svn-id: svn://10.0.0.236/trunk@107030 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rangansen%netscape.com 2001-11-02 00:34:15 +00:00
parent d7d2ef3a82
commit 0fc1cdbf40
2 changed files with 8 additions and 1 deletions

View File

@ -45,6 +45,14 @@ function onLoad()
var msg = bundle.formatStringFromName("escrowFinalMessage",
[dispName], 1);
setText("message1",msg);
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 + 30);
}
function doOK()

View File

@ -22,7 +22,6 @@
<window id="escrowWarnDialog" title="&escrowWarn.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="280"
width="400"
onload="onLoad();">