Fossil

Check-in [63d46e6d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Change the way the graph elements are removed when the graph is being redrawn.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 63d46e6d33c41eaae6586a617d08e360883f45a8
User & Date: drh 2010-02-08 19:17:07
Context
2010-02-08
19:59
Add a DOCTYPE to the beginning of every page. IE8 appears to work better with the DOCTYPE in place. check-in: 0faa676f user: drh tags: trunk
19:17
Change the way the graph elements are removed when the graph is being redrawn. check-in: 63d46e6d user: drh tags: trunk
18:48
Use the innerHTML method rather than setAttribute to add DIV elements for graphics, in an effort to get graphs to work with IE. check-in: 4e8c30c3 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
    @     }else{
    @       drawThinArrow(y0,mx,p.x-5);
    @     }
    @   }
    @ }
    @ function renderGraph(){
    @   var canvasDiv = document.getElementById("canvas");
    @   for(var i=canvasDiv.childNodes.length-1; i>=0; i--){
    @     var c = canvasDiv.childNodes[i];
    @     delete canvasDiv.removeChild(c);
    @   }
    @   var canvasY = absoluteY("canvas");
    @   var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15;
    @   for(var i in rowinfo){
    @     rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
    @     rowinfo[i].x = left + rowinfo[i].r*20;
    @   }







|
<
|







492
493
494
495
496
497
498
499

500
501
502
503
504
505
506
507
    @     }else{
    @       drawThinArrow(y0,mx,p.x-5);
    @     }
    @   }
    @ }
    @ function renderGraph(){
    @   var canvasDiv = document.getElementById("canvas");
    @   while( canvasDiv.hasChildNodes() ){

    @     canvasDiv.removeChild(canvasDiv.firstChild);
    @   }
    @   var canvasY = absoluteY("canvas");
    @   var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15;
    @   for(var i in rowinfo){
    @     rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
    @     rowinfo[i].x = left + rowinfo[i].r*20;
    @   }