# HG changeset patch # User Marcin Kuzminski # Date 1277318792 -7200 # Node ID 68dc70295a76d1b4ac496ca095791235e2895f73 # Parent d7aeae23c56d6d3dd0df19bd338f5b371c457b3e Ie graph support. + some small html/tooltip changes diff -r d7aeae23c56d -r 68dc70295a76 pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py Wed Jun 23 18:14:27 2010 +0200 +++ b/pylons_app/lib/helpers.py Wed Jun 23 20:46:32 2010 +0200 @@ -149,7 +149,7 @@ var pos_y = YAHOO.util.Dom.getY(context); var display_strategy = 'top'; - var xy_pos= [0,0] + var xy_pos = [0,0]; switch (display_strategy){ case 'top': @@ -172,7 +172,12 @@ var cur_y = pos_y-((tt_h/2)-context_h/2); xy_pos = [cur_x,cur_y]; break; - + default: + var cur_x = (pos_x+context_w/2)-(tt_w/2); + var cur_y = pos_y-tt_h-4; + xy_pos = [cur_x,cur_y]; + break; + } this.cfg.setProperty("xy",xy_pos); diff -r d7aeae23c56d -r 68dc70295a76 pylons_app/public/css/monoblue_custom.css --- a/pylons_app/public/css/monoblue_custom.css Wed Jun 23 18:14:27 2010 +0200 +++ b/pylons_app/public/css/monoblue_custom.css Wed Jun 23 20:46:32 2010 +0200 @@ -174,6 +174,7 @@ border:2px solid #556CB5; font:100% sans-serif; width:auto; + opacity:1.0; } .yui-tt-shadow { diff -r d7aeae23c56d -r 68dc70295a76 pylons_app/public/js/graph.js --- a/pylons_app/public/js/graph.js Wed Jun 23 18:14:27 2010 +0200 +++ b/pylons_app/public/js/graph.js Wed Jun 23 20:46:32 2010 +0200 @@ -25,8 +25,8 @@ this.canvas = document.getElementById("graph_canvas"); - //if ($.browser.msie) - // this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); + if (navigator.userAgent.indexOf('MSIE') >= 0) + this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); this.ctx = this.canvas.getContext('2d'); this.ctx.strokeStyle = 'rgb(0, 0, 0)'; this.ctx.fillStyle = 'rgb(0, 0, 0)';