r10212: An IE fix. Must set initial values in the onload function.
authorDeryck Hodge <deryck@samba.org>
Tue, 13 Sep 2005 21:31:40 +0000 (21:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:08 +0000 (13:38 -0500)
deryck
(This used to be commit 3264ccf7438e003c3ed217f2d4a7315aceb05eb1)

swat/scripting/client/desktop.js

index bddd38b60c8bfea88eae1faa030edd9284bababf..e8f10f6efa690a930a6dbd3f379b0bd19f77bf03 100644 (file)
@@ -8,12 +8,6 @@
 
 // The global widget we attach everything to
 var w = new QxWidget();
-with(w) {
-       setTop(0);
-       setLeft(0);
-       setWidth(docX());
-       setHeight(docY());
-}
 
 /* Qooxdoo's browser sniffer doesn't distinguish IE version.
 We'll cover IE 6 for now, but these checks need to be
@@ -143,6 +137,13 @@ function contextMenu(e)
 
 window.application.main = function()
 {
+       with(w) {
+               setTop(0);
+               setLeft(0);
+               setWidth(docX());
+               setHeight(docY());
+       }
+
        var doc = this.getClientWindow().getClientDocument();
        doc.addEventListener("contextmenu", contextMenu);
        doc.add(w);