Parcourir la source

Fix footer overlap in print preview (#3866)

version-14
Faris Ansari il y a 8 ans
committed by Rushabh Mehta
Parent
révision
0a3d5c7f07
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. +6
    -3
      frappe/public/js/frappe/form/print.js

+ 6
- 3
frappe/public/js/frappe/form/print.js Voir le fichier

@@ -132,11 +132,14 @@ frappe.ui.form.PrintPreview = Class.extend({
show_footer: function() {
// footer is hidden by default as reqd by pdf generation
// 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', `
display: block !important;
position: absolute;
bottom: 0.75in;
order: 1;
margin-top: 20px;
`);
},
printit: function () {


Chargement…
Annuler
Enregistrer