Fossil

Check-in [05045a47]
Login

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

Overview
Comment:Use round() instead of ceil() on element dimension calculations.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphcss
Files: files | file ages | folders
SHA1: 05045a476d9997b5243c7493f9db408b32a856f3
User & Date: joel 2015-05-06 21:28:53
Context
2015-05-08
03:22
Reimplement timeline-circle-nodes and timeline-arrowheads skin options. Closed-Leaf check-in: aaa0e6d1 user: joel tags: graphcss
2015-05-06
21:28
Use round() instead of ceil() on element dimension calculations. check-in: 05045a47 user: joel tags: graphcss
20:55
Allow the timeline graph to be customized using CSS. check-in: 1f1e199a user: joel tags: graphcss
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
    @     var cls = elemClasses[i];
    @     var elem = document.createElement("div");
    @     elem.className = "tl-" + cls;
    @     if( cls.indexOf("line")==0 ) elem.className += " v";
    @     canvasDiv.appendChild(elem);
    @     var k = cls.replace(/\s/g, "_");
    @     var r = elem.getBoundingClientRect();
    @     var w = Math.ceil(r.right - r.left);
    @     var h = Math.ceil(r.bottom - r.top);
    @     elems[k] = {w: w, h: h, cls: cls};
    @   }
    @   node = elems.node;
    @   arrow = elems.arrow_u;
    @   arrowSmall = elems.arrow_u_sm;
    @   line = elems.line;
    @   mArrow = elems.arrow_merge_r;







|
|







739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
    @     var cls = elemClasses[i];
    @     var elem = document.createElement("div");
    @     elem.className = "tl-" + cls;
    @     if( cls.indexOf("line")==0 ) elem.className += " v";
    @     canvasDiv.appendChild(elem);
    @     var k = cls.replace(/\s/g, "_");
    @     var r = elem.getBoundingClientRect();
    @     var w = Math.round(r.right - r.left);
    @     var h = Math.round(r.bottom - r.top);
    @     elems[k] = {w: w, h: h, cls: cls};
    @   }
    @   node = elems.node;
    @   arrow = elems.arrow_u;
    @   arrowSmall = elems.arrow_u_sm;
    @   line = elems.line;
    @   mArrow = elems.arrow_merge_r;