Browse Source

Fix footer overlap in print preview (#3866)

version-14
Faris Ansari 8 years ago
committed by Rushabh Mehta
parent
commit
0a3d5c7f07
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      frappe/public/js/frappe/form/print.js

+ 6
- 3
frappe/public/js/frappe/form/print.js View File

@@ -132,11 +132,14 @@ frappe.ui.form.PrintPreview = Class.extend({
show_footer: function() { show_footer: function() {
// footer is hidden by default as reqd by pdf generation // footer is hidden by default as reqd by pdf generation
// simple hack to show it in print preview // simple hack to show it in print preview
this.wrapper.find('.print-format').css('position', 'relative');
this.wrapper.find('.page-break').css({
'display': 'flex',
'flex-direction': 'column'
});
this.wrapper.find('#footer-html').attr('style', ` this.wrapper.find('#footer-html').attr('style', `
display: block !important; display: block !important;
position: absolute;
bottom: 0.75in;
order: 1;
margin-top: 20px;
`); `);
}, },
printit: function () { printit: function () {


Loading…
Cancel
Save