[Bug 3626] New: hgweb graph has incorrect padding for branches other than the first

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Sun Sep 16 20:05:59 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3626

          Priority: normal
            Bug ID: 3626
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hgweb graph has incorrect padding for branches other
                    than the first
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: timothy.c.delaney at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.3.1
         Component: hgweb
           Product: Mercurial

When you have more than one branch displayed in the graph, the description, etc
gets pushed further and further from the graph the more branches there are.
This appears to be what is described in
http://bz.selenic.com/show_bug.cgi?id=2683 but that has been marked as resolved
with a fix that doesn't address the issue described (though does fix another
issue).

The cause is an incorrect padding-left calculation.

Currently the padding is calculated as

    var left = (this.columns + 1) * this.bg_height.

The correct calculation is:

    var colwidth = this.box_size - 1;
    var left = (this.bg_height - colwidth) + (this.columns + 1) * colwidth;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list