summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-07-06 03:23:47 +0200
committeremkael <emkael@tlen.pl>2018-07-06 03:23:47 +0200
commit7ed51a63ac7aea8da6de888b04164b945ef745b5 (patch)
tree5651d62bd103e87a396fea655f8bac5277ed90dc
parentf883784164de0a72ce61e8b225435de337ead2ed (diff)
Adding vertical margin to starting position boxes
-rw-r--r--jfr_playoff/generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index b72c34d..0680aba 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -144,7 +144,7 @@ class PlayoffGenerator(object):
boxes += self.p_temp.get(
'STARTING_POSITION_BOX',
0,
- int(float(order) / float(len(positions)) * dimensions[1]),
+ self.page['margin'] / 2 + int(float(order) / float(len(positions)) * dimensions[1]),
place,
self.p_temp.get('POSITION_BOX', place))
order += 1