summaryrefslogtreecommitdiff
path: root/swat/scripting/client
diff options
context:
space:
mode:
authorDeryck Hodge <deryck@samba.org>2005-08-29 22:04:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:57 -0500
commit33f4328c69a3a06e859b9180f5f509faec37aeee (patch)
treecda79cf37af0b8472889d756917be27498f6e41f /swat/scripting/client
parentec934124db8a5234d8c83799a23c7bdced5dd95a (diff)
downloadsamba-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/client')
-rw-r--r--swat/scripting/client/desktop.js20
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()