Browse Source

Fix box differently to avoid getting a null height on huge numbers

pull/264/head
Florian Mounier 9 years ago
parent
commit
a05a3ee3ec
  1. 4
      pygal/view.py

4
pygal/view.py

@ -135,8 +135,8 @@ class Box(object):
if not self.width:
self.xmax = self.xmin + 1
if not self.height:
self.ymin -= .5
self.ymax = self.ymin + 1
self.ymin /= 2
self.ymax += self.ymin
xmargin = self.margin * self.width
self.xmin -= xmargin
self.xmax += xmargin

Loading…
Cancel
Save