Fossil SCM
A simple tweak to the graph javascript gets it working on IE6. Ticket [a734fe24da8f75758cf]
Commit
e0eceb7892852e82154d70fb0e4d8392fbd7d19d
Parent
aaf8cfa2967cdbf…
1 file changed
+2
-2
+2
-2
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -196,11 +196,11 @@ | ||
| 196 | 196 | ** a technical div for the timeline graph |
| 197 | 197 | */ |
| 198 | 198 | @ <div id="canvas" style="position:relative;width:1px;height:1px;"></div> |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - @ <table class="timelineTable"> | |
| 201 | + @ <table id="timelineTable" class="timelineTable"> | |
| 202 | 202 | blob_zero(&comment); |
| 203 | 203 | while( db_step(pQuery)==SQLITE_ROW ){ |
| 204 | 204 | int rid = db_column_int(pQuery, 0); |
| 205 | 205 | const char *zUuid = db_column_text(pQuery, 1); |
| 206 | 206 | int isLeaf = db_column_int(pQuery, 5); |
| @@ -488,11 +488,11 @@ | ||
| 488 | 488 | @ function renderGraph(){ |
| 489 | 489 | @ var canvasDiv = document.getElementById("canvas"); |
| 490 | 490 | @ while( canvasDiv.hasChildNodes() ){ |
| 491 | 491 | @ canvasDiv.removeChild(canvasDiv.firstChild); |
| 492 | 492 | @ } |
| 493 | - @ var canvasY = absoluteY("canvas"); | |
| 493 | + @ var canvasY = absoluteY("timelineTable"); | |
| 494 | 494 | @ var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15; |
| 495 | 495 | @ var width = nrail*20; |
| 496 | 496 | @ for(var i in rowinfo){ |
| 497 | 497 | @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY; |
| 498 | 498 | @ rowinfo[i].x = left + rowinfo[i].r*20; |
| 499 | 499 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -196,11 +196,11 @@ | |
| 196 | ** a technical div for the timeline graph |
| 197 | */ |
| 198 | @ <div id="canvas" style="position:relative;width:1px;height:1px;"></div> |
| 199 | } |
| 200 | |
| 201 | @ <table class="timelineTable"> |
| 202 | blob_zero(&comment); |
| 203 | while( db_step(pQuery)==SQLITE_ROW ){ |
| 204 | int rid = db_column_int(pQuery, 0); |
| 205 | const char *zUuid = db_column_text(pQuery, 1); |
| 206 | int isLeaf = db_column_int(pQuery, 5); |
| @@ -488,11 +488,11 @@ | |
| 488 | @ function renderGraph(){ |
| 489 | @ var canvasDiv = document.getElementById("canvas"); |
| 490 | @ while( canvasDiv.hasChildNodes() ){ |
| 491 | @ canvasDiv.removeChild(canvasDiv.firstChild); |
| 492 | @ } |
| 493 | @ var canvasY = absoluteY("canvas"); |
| 494 | @ var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15; |
| 495 | @ var width = nrail*20; |
| 496 | @ for(var i in rowinfo){ |
| 497 | @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY; |
| 498 | @ rowinfo[i].x = left + rowinfo[i].r*20; |
| 499 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -196,11 +196,11 @@ | |
| 196 | ** a technical div for the timeline graph |
| 197 | */ |
| 198 | @ <div id="canvas" style="position:relative;width:1px;height:1px;"></div> |
| 199 | } |
| 200 | |
| 201 | @ <table id="timelineTable" class="timelineTable"> |
| 202 | blob_zero(&comment); |
| 203 | while( db_step(pQuery)==SQLITE_ROW ){ |
| 204 | int rid = db_column_int(pQuery, 0); |
| 205 | const char *zUuid = db_column_text(pQuery, 1); |
| 206 | int isLeaf = db_column_int(pQuery, 5); |
| @@ -488,11 +488,11 @@ | |
| 488 | @ function renderGraph(){ |
| 489 | @ var canvasDiv = document.getElementById("canvas"); |
| 490 | @ while( canvasDiv.hasChildNodes() ){ |
| 491 | @ canvasDiv.removeChild(canvasDiv.firstChild); |
| 492 | @ } |
| 493 | @ var canvasY = absoluteY("timelineTable"); |
| 494 | @ var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15; |
| 495 | @ var width = nrail*20; |
| 496 | @ for(var i in rowinfo){ |
| 497 | @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY; |
| 498 | @ rowinfo[i].x = left + rowinfo[i].r*20; |
| 499 |