diff options
author | Deryck Hodge <deryck@samba.org> | 2005-08-29 22:04:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:57 -0500 |
commit | 33f4328c69a3a06e859b9180f5f509faec37aeee (patch) | |
tree | cda79cf37af0b8472889d756917be27498f6e41f /swat/scripting | |
parent | ec934124db8a5234d8c83799a23c7bdced5dd95a (diff) | |
download | samba-33f4328c69a3a06e859b9180f5f509faec37aeee.tar.gz samba-33f4328c69a3a06e859b9180f5f509faec37aeee.tar.bz2 samba-33f4328c69a3a06e859b9180f5f509faec37aeee.zip |
r9763: Add the start bar as a widget from the
desktop file. This is more portable to IE, though
there are still some IE issues hanging around.
deryck
(This used to be commit a70b52bb04689de90ee5ec59109d669175b91c04)
Diffstat (limited to 'swat/scripting')
-rw-r--r-- | swat/scripting/client/desktop.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/swat/scripting/client/desktop.js b/swat/scripting/client/desktop.js index b1c77dc613..6383e58bda 100644 --- a/swat/scripting/client/desktop.js +++ b/swat/scripting/client/desktop.js @@ -35,9 +35,8 @@ function docX() function docY() { var y; - // Less 25px to not cover the toolbar if (browser != "mshtml") { - y = window.innerHeight - 25; + y = window.innerHeight; } else { y = document.documentElement.clientHeight; } @@ -154,6 +153,23 @@ window.application.main = function() var doc = this.getClientWindow().getClientDocument(); doc.addEventListener("contextmenu", showContextMenu); doc.add(w); + + var bar = new QxMenuBar; + with (bar) { + setBottom(0); + setLeft(0); + setWidth("100%"); + setHeight(25); + setBackgroundColor("ThreeDFace"); + } + + var start = new QxMenuButton("START"); + start.addEventListener("click", function() { + startMenu(); + }); + bar.add(start); + + w.add(bar); } window.onresize = function() |