summaryrefslogtreecommitdiff
path: root/swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-09-11 16:47:45 +0200
committerStefan Metzmacher <metze@samba.org>2008-09-12 08:51:07 +0200
commitbf852a3dbeee8900fa36978f08a5cdceabcbd926 (patch)
treedd365b88f23fafefb02b7ebc2dea4e3ca39372fe /swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js
parenta383b8bf88a5681f9c9c6839ba645c872a735051 (diff)
downloadsamba-bf852a3dbeee8900fa36978f08a5cdceabcbd926.tar.gz
rename swat => swat2, so that we don't conflict with samba3
metze
Diffstat (limited to 'swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js')
-rw-r--r--swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js b/swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js
new file mode 100644
index 00000000000..822474cc774
--- /dev/null
+++ b/swat2/style/qooxdoo/widgets/widgets/QxBarSelectorPane.js
@@ -0,0 +1,2 @@
+/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */
+function QxBarSelectorPane(){QxWidget.call(this);};QxBarSelectorPane.extend(QxWidget,"QxBarSelectorPane");proto._modifyElement=function(_b1,_b2,_b3,_b4){QxWidget.prototype._modifyElement.call(this,_b1,_b2,_b3,_b4);return this._applyState();};proto._modifyState=function(_b1,_b2,_b3,_b4){QxWidget.prototype._modifyState.call(this,_b1,_b2,_b3,_b4);return this._applyState();};proto._applyState=function(){var vParent=this.getParent();if(!vParent||!this.isCreated()){return true;};var vBar=vParent.getBar();if(!vBar.isCreated()){return true;};var vTop=0,vRight=0,vBottom=0,vLeft=0;switch(this.getState()){case "top":vBottom=vBar.getComputedBoxHeight()-this.getComputedBorderBottom();break;case "right":vLeft=vBar.getComputedBoxWidth()-this.getComputedBorderLeft();break;case "left":vRight=vBar.getComputedBoxWidth()-this.getComputedBorderRight();break;default:vTop=vBar.getComputedBoxHeight()-this.getComputedBorderTop();};this.setTop(vTop);this.setRight(vRight);this.setBottom(vBottom);this.setLeft(vLeft);return true;}; \ No newline at end of file