Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 17580:ffe3630cb243 stable
hgweb: fix incorrect graph padding calculation (issue3626)
hgweb has an incorrect padding calculation, causing the text to move further
away from the graph the more branches there are (issue3626). This patch fixes
all existing templates (gitweb, monoblue, paper and spartan).
Tests updated by Patrick Mezard <patrick@mezard.eu>
author | Tim Delaney <timothy.c.delaney@gmail.com> |
---|---|
date | Mon, 17 Sep 2012 21:33:16 +0200 |
parents | 3eb85477c0d9 |
children | 54c832922e85 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Tue Sep 11 10:59:21 2012 -0300 +++ b/tests/test-hgweb-commands.t Mon Sep 17 21:33:16 2012 +0200 @@ -988,7 +988,7 @@ this.ctx.fill(); var bg = '<li class="bg parity' + parity + '"></li>'; - var left = (this.columns + 1) * this.bg_height; + var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; var nstyle = 'padding-left: ' + left + 'px;'; var tagspan = '';