Mercurial > hg
changeset 6697:0dbdf47421f5
graph: tweak the indentation algorithm
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 18 Jun 2008 12:13:59 +0200 |
parents | 49c0be9eb8c4 |
children | 18372165138b |
files | templates/static/graph.js |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/static/graph.js Wed Jun 18 11:09:18 2008 +0200 +++ b/templates/static/graph.js Wed Jun 18 12:13:59 2008 +0200 @@ -93,9 +93,11 @@ end = line[1]; color = line[2]; - if (end > this.columns) { + if (end > this.columns || start > this.columns) { this.columns += 1; - } else if (start == this.columns && start > end) { + } + + if (start == this.columns && start > end) { var fold = true; }