From c075aed46ee0dceb6bf3a3569da67daf0a50bdde Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sun, 18 Nov 2007 15:04:33 +0000 Subject: working version ... schluss fuer den moment --- qooxdoo/source/class/Smokeping/ui/Graph.js | 4 +- qooxdoo/source/class/Smokeping/ui/Navigator.js | 5 +- qooxdoo/source/class/Smokeping/ui/Zoomer.js | 88 +++++++++++++------------- 3 files changed, 50 insertions(+), 47 deletions(-) (limited to 'qooxdoo/source/class/Smokeping/ui') diff --git a/qooxdoo/source/class/Smokeping/ui/Graph.js b/qooxdoo/source/class/Smokeping/ui/Graph.js index 955374a..8a55a4f 100644 --- a/qooxdoo/source/class/Smokeping/ui/Graph.js +++ b/qooxdoo/source/class/Smokeping/ui/Graph.js @@ -38,7 +38,7 @@ qx.Class.define('Smokeping.ui.Graph', this.setHeight('auto'); }; this.set({ - border : new qx.ui.core.Border(1,'dotted','transparent'), + border : new qx.ui.core.Border(1,'dotted','#ffffff'), horizontalChildrenAlign: 'center', verticalChildrenAlign: 'middle' }); @@ -97,7 +97,7 @@ qx.Class.define('Smokeping.ui.Graph', _unhighlight: function(e){ this.setBackgroundColor('transparent'); this.getBorder().set({ - color: 'transparent' + color: '#ffffff' }); } } diff --git a/qooxdoo/source/class/Smokeping/ui/Navigator.js b/qooxdoo/source/class/Smokeping/ui/Navigator.js index 0e9f64f..37042e4 100644 --- a/qooxdoo/source/class/Smokeping/ui/Navigator.js +++ b/qooxdoo/source/class/Smokeping/ui/Navigator.js @@ -90,9 +90,10 @@ qx.Class.define('Smokeping.ui.Navigator', qx.io.image.PreloaderManager.getInstance().remove(this._preloader); removeAll(); add(image); - var zoomer = new Smokeping.ui.Zoomer(width,height,10,10); + this.debug('added image'); + var zoomer = new Smokeping.ui.Zoomer(image,this._graph_width,this._graph_height,33,30); add(zoomer); - + this.debug('added zoomer'); } } } diff --git a/qooxdoo/source/class/Smokeping/ui/Zoomer.js b/qooxdoo/source/class/Smokeping/ui/Zoomer.js index fd1a836..e46b0f0 100644 --- a/qooxdoo/source/class/Smokeping/ui/Zoomer.js +++ b/qooxdoo/source/class/Smokeping/ui/Zoomer.js @@ -27,53 +27,58 @@ qx.Class.define('Smokeping.ui.Zoomer', * */ - construct: function (width,height,top,right) { + construct: function (target,width,height,top,right) { + this.debug('hell'); + this._target = target; this._width = width; - this._height = height; + this._height = height+1; // some where the calc is 1 off. this fixes it this._top = top; this._right = right; with(this){ base(arguments); set({ width: '100%', - height: '100%' + height: '100%', + visibility: false }); } var zoomer_defaults = { - visibility: false, - opacity: 0.1, - backgroundColor: 'black', + backgroundColor: 'black', + opacity: 0.1, overflow: 'hidden' // important to make box go to 'zero height' on ie6 }; var dir = ['left','right','top','bottom' ]; + var z = []; + this._zoomer = z; for(var i=0;i