Commit 508a4cb5 authored by Fabien Morin's avatar Fabien Morin

- add a new parameter space_between_pages that permit to define the sapce between

two pages
- modify the margin-top attribute of the page_end section, this is more logical
  to have the same spaces than the space between two pages after the last page
  than a page height (before this commit, a empty page space was displayed
  after the last page)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18952 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab34e6ea
......@@ -856,7 +856,8 @@ class ManageCSS:
, page_iterator
, page_gap
, keep_page
, properties_page):
, properties_page
, space_between_pages):
"""
recover all CSS data relative to the current page_object (field)
and save these informations in the output dict
......@@ -918,7 +919,8 @@ class ManageCSS:
str(12) + 'px'
properties_css_object_error['font-size'] = \
str(12) + 'px'
properties_css_object_err_d['margin-left'] = str(page_width + 20 ) + 'px'
properties_css_object_err_d['margin-left'] = str(page_width +
space_between_pages ) + 'px'
properties_css_object_stand['margin-top'] = \
str((scaling_factor2 *float(properties_field['position_y']))) + 'px'
properties_css_object_error['margin-top'] = \
......@@ -1146,7 +1148,8 @@ class ManageCSS:
security.declarePublic('setFinalProperties')
def setFinalProperties( self
, properties_css_dict
, page_height):
, page_height
, space_between_pages):
"""
adding 'page_end' class to add a div at the end of the last page
in order to display the full last page under Konqueror
......@@ -1155,7 +1158,7 @@ class ManageCSS:
"""
properties_css_page = {}
properties_css_page['position'] = 'relative'
properties_css_page['margin-top'] = "%spx" % str(page_height)
properties_css_page['margin-top'] = "%spx" % str(space_between_pages)
properties_css_dict['head']['page_end'] = properties_css_page
return properties_css_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment