##// END OF EJS Templates
Ie graph support....
marcink -
r293:68dc7029 default
parent child Browse files
Show More
@@ -149,7 +149,7 class _ToolTip(object):
149 var pos_y = YAHOO.util.Dom.getY(context);
149 var pos_y = YAHOO.util.Dom.getY(context);
150
150
151 var display_strategy = 'top';
151 var display_strategy = 'top';
152 var xy_pos= [0,0]
152 var xy_pos = [0,0];
153 switch (display_strategy){
153 switch (display_strategy){
154
154
155 case 'top':
155 case 'top':
@@ -172,7 +172,12 class _ToolTip(object):
172 var cur_y = pos_y-((tt_h/2)-context_h/2);
172 var cur_y = pos_y-((tt_h/2)-context_h/2);
173 xy_pos = [cur_x,cur_y];
173 xy_pos = [cur_x,cur_y];
174 break;
174 break;
175
175 default:
176 var cur_x = (pos_x+context_w/2)-(tt_w/2);
177 var cur_y = pos_y-tt_h-4;
178 xy_pos = [cur_x,cur_y];
179 break;
180
176 }
181 }
177
182
178 this.cfg.setProperty("xy",xy_pos);
183 this.cfg.setProperty("xy",xy_pos);
@@ -174,6 +174,7 table tr.parity1 {
174 border:2px solid #556CB5;
174 border:2px solid #556CB5;
175 font:100% sans-serif;
175 font:100% sans-serif;
176 width:auto;
176 width:auto;
177 opacity:1.0;
177 }
178 }
178
179
179 .yui-tt-shadow {
180 .yui-tt-shadow {
@@ -25,8 +25,8 function BranchRenderer() {
25
25
26 this.canvas = document.getElementById("graph_canvas");
26 this.canvas = document.getElementById("graph_canvas");
27
27
28 //if ($.browser.msie)
28 if (navigator.userAgent.indexOf('MSIE') >= 0)
29 // this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
29 this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
30 this.ctx = this.canvas.getContext('2d');
30 this.ctx = this.canvas.getContext('2d');
31 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
31 this.ctx.strokeStyle = 'rgb(0, 0, 0)';
32 this.ctx.fillStyle = 'rgb(0, 0, 0)';
32 this.ctx.fillStyle = 'rgb(0, 0, 0)';
General Comments 0
You need to be logged in to leave comments. Login now