View Ticket
Not logged in
Ticket UUID: ddd45723b9a214e2d32251e11dd1db5a714b2198
Title: About a half of check-in link on timeline is not clickable
Status: Fixed Type: Code_Defect
Severity: Cosmetic Priority:
Subsystem: Resolution: Fixed
Last Modified: 2010-02-23 15:28:58
Version Found In:
Description & Comments:
It may be due to canvas div

anonymous added on 2010-02-16 10:27:49:
windows ff 3.5.7, opera 10.0 but in ie 8.0 it's OK


anonymous claiming to be anonymous pretending to be Darren Turland added on 2010-02-23 12:30:00:
The following patch will size the canvas div to the correct width. Tested on ff 3.5.7, and ie8

--- src/timeline.c
+++ src/timeline.c
@@ -502,19 +502,19 @@
     @   while( canvasDiv.hasChildNodes() ){
     @     canvasDiv.removeChild(canvasDiv.firstChild);
     @   }
     @   var canvasY = absoluteY("canvas");
     @   var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15;
-    @   var width = left + nrail*20 + 20;
+    @   var width = nrail*20;
     @   for(var i in rowinfo){
     @     rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
     @     rowinfo[i].x = left + rowinfo[i].r*20;
     @   }
     @   var btm = rowinfo[rowinfo.length-1].y + 20;
     @   canvasDiv.innerHTML = '<canvas id="timeline-canvas" '+
     @      'style="position:absolute;left:'+(left-5)+'px;"' +
-    @      ' width="'+(width-left+26)+'" height="'+btm+'"></canvas>';
+    @      ' width="'+width+'" height="'+btm+'"></canvas>';
     @   realCanvas = document.getElementById('timeline-canvas');
     @   var context;
     @   if( realCanvas && realCanvas.getContext
     @        && (context = realCanvas.getContext('2d'))) {
     @     drawBox = function(color,x0,y0,x1,y1) {