Ticket Change Details
Not logged in
Overview

Artifact ID: 6f62d8e94100261851d34c5162c0d136ee72214c
Ticket: ddd45723b9a214e2d32251e11dd1db5a714b2198
About a half of check-in link on timeline is not clickable
User & Date: anonymous 2010-02-23 12:30:00
Changes

  1. Appended to comment:
    
    
    <hr><i>anonymous claiming to be anonymous pretending to be Darren Turland added on 2010-02-23 12:30:00:</i><br>
    The following patch will size the canvas div to the correct width.
    Tested on ff 3.5.7, and ie8
    
    <nowiki><pre>
    --- 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) {
    </pre></nowiki>