Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use the innerHTML method rather than setAttribute to add DIV elements for graphics, in an effort to get graphs to work with IE. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4e8c30c354d5e3d4ab6d1de0c3ca2753 |
User & Date: | drh 2010-02-08 18:48:47.000 |
Context
2010-02-08
| ||
19:17 | Change the way the graph elements are removed when the graph is being redrawn. ... (check-in: 63d46e6d33 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: 4e8c30c354 user: drh tags: trunk) | |
18:47 | fossil rm can now remove entire directories. ... (check-in: 6dbd362de9 user: jeremy_c tags: trunk) | |
Changes
Changes to src/timeline.c.
︙ | ︙ | |||
249 250 251 252 253 254 255 | @ <div class="divider"><nobr>%s(zPrevDate)</nobr></div> @ </td></tr> } memcpy(zTime, &zDate[11], 5); zTime[5] = 0; @ <tr> @ <td valign="top" align="right">%s(zTime)</td> | | | 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | @ <div class="divider"><nobr>%s(zPrevDate)</nobr></div> @ </td></tr> } memcpy(zTime, &zDate[11], 5); zTime[5] = 0; @ <tr> @ <td valign="top" align="right">%s(zTime)</td> @ <td width="20" align="left" valign="top"> @ <div id="m%d(rid)"></div> if( zBgClr && zBgClr[0] ){ @ <td valign="top" align="left" bgcolor="%h(zBgClr)"> }else{ @ <td valign="top" align="left"> } if( zType[0]=='c' ){ |
︙ | ︙ | |||
399 400 401 402 403 404 405 | @ var canvasDiv = document.getElementById("canvas"); @ function drawBox(color,x0,y0,x1,y1){ @ var n = document.createElement("div"); @ if( x0>x1 ){ var t=x0; x0=x1; x1=t; } @ if( y0>y1 ){ var t=y0; y0=y1; y1=t; } @ var w = x1-x0+1; @ var h = y1-y0+1; | < | | < | 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | @ var canvasDiv = document.getElementById("canvas"); @ function drawBox(color,x0,y0,x1,y1){ @ var n = document.createElement("div"); @ if( x0>x1 ){ var t=x0; x0=x1; x1=t; } @ if( y0>y1 ){ var t=y0; y0=y1; y1=t; } @ var w = x1-x0+1; @ var h = y1-y0+1; @ n.innerHTML="<div style=\"position:absolute;overflow:hidden;"+ @ "left:"+x0+"px;"+ @ "top:"+y0+"px;"+ @ "width:"+w+"px;"+ @ "height:"+h+"px;"+ @ "background-color:"+color+";\"></div>" @ canvasDiv.appendChild(n); @ } @ function absoluteY(id){ @ var obj = document.getElementById(id); @ if( !obj ) return; @ var top = 0; @ if( obj.offsetParent ){ |
︙ | ︙ |