藤原です。
2016年1月19日 0:20 Yuya Nishihara <
yu...@tcha.org>:
Python コード側には、既に canvas 幅 (= canvaswidth) 算出ロジックが
実装されているのに、テンプレート側で width 属性に canvaswidth を利
用する修正が反映されていないのが原因みたいです。
https://selenic.com/repo/hg/rev/d490edc71146
https://selenic.com/repo/hg/file/3.6.3/mercurial/hgweb/webcommands.py#l1237
標準スタイルの paper であれば、以下の修正で正しく描画されるように
なることが確認できました。
==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ====
--- a/mercurial/templates/paper/graph.tmpl
+++ b/mercurial/templates/paper/graph.tmpl
@@ -55,7 +55,7 @@
<div id="wrapper">
<ul id="nodebgs" class="stripes2"></ul>
-<canvas id="graph" width="480" height="{canvasheight}"></canvas>
+<canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas>
<ul id="graphnodes"></ul>
</div>
==== 8< ==== 8< ==== 8< ==== 8< ==== 8< ====
--
----------------------------------------------------------------------
FUJIWARA Katsunori(
flying...@gmail.com)