Attachment "timeline-graph.patch" to
ticket [a734fe24da]
added by
anonymous
2010-11-12 14:06:18.
Index: src/timeline.c
===================================================================
--- src/timeline.c
+++ src/timeline.c
@@ -196,11 +196,11 @@
** a technical div for the timeline graph
*/
@ <div id="canvas" style="position:relative;width:1px;height:1px;"></div>
}
- @ <table class="timelineTable">
+ @ <table id="timelineTable" class="timelineTable">
blob_zero(&comment);
while( db_step(pQuery)==SQLITE_ROW ){
int rid = db_column_int(pQuery, 0);
const char *zUuid = db_column_text(pQuery, 1);
int isLeaf = db_column_int(pQuery, 5);
@@ -488,11 +488,11 @@
@ function renderGraph(){
@ var canvasDiv = document.getElementById("canvas");
@ while( canvasDiv.hasChildNodes() ){
@ canvasDiv.removeChild(canvasDiv.firstChild);
@ }
- @ var canvasY = absoluteY("canvas");
+ @ var canvasY = absoluteY("timelineTable") - 1;
@ var left = absoluteX(rowinfo[0].id) - absoluteX("canvas") + 15;
@ 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;