Skip to content

Commit

Permalink
use variable self.total_height
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Maier committed Dec 20, 2024
1 parent b2fa017 commit 2a018b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def __init__(self, extract):
# 842: regular A4 page size in px
# inlcude 10px buffer, taking a earlier page break of MPF
# into consideration for unknown reasons
self.total_height = 842 - 10
self.total_height = 832
self.header_height = self.compute_header()
self.footer_height = self.compute_footer()
self.disposable_height = (
842 - self.header_height - self.footer_height
self.total_height - self.header_height - self.footer_height
) # A4 size - (footer + header)
self.d1_height = 77 # toc.jrxml
self.d2_height = 32 # toc.jrxml
Expand Down

0 comments on commit 2a018b6

Please sign in to comment.