summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-09-13 11:53:17 +0200
committerNicolas Lempereur <nle@odoo.com>2018-09-13 12:44:53 +0200
commit4ec9b55a793c93fe2868326a29fc8607711118f4 (patch)
treeeb3fa24848c8767ae2b885c17896dfd8daa4a172 /addons/web/static/src/js/views/basic/basic_controller.js
parent5cb9f8e9d5e14850e8935327aa73de16cf981f46 (diff)
[FIX] web: background layout landscape no +1 page
The report layout "background" has an image background from bottom to top. When we transform the report in PDF, we have no idea in the document of how many page, which orientation, width or height it will take. Thus to be able to have the background at the bottom of a page when there is not enough content, we set a min-height for the body content. This height was 1000px originally and has been decreased to 900px in 41c75ad0c3 because an empty page was possibly added (since the height of body + header + footer was bigger than page size). This issue is about getting a blank page when pdf is in landscape. For example in A4 with 90ppi has a 1052px height in portrait, but 744px height in landscape so we always get at least two pages with possibly a blank one. With this commit we lower it to 620px allowing 124px headers/footers. opw-1881059 closes #26962
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions