Merge pull request #27597 from maharshivpatel/fix-beta-on-load

fix: on load of beta print format set iframe height
This commit is contained in:
Akhil Narang 2024-09-02 12:07:42 +05:30 committed by GitHub
commit 6d287cd6c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -427,6 +427,9 @@ frappe.ui.form.PrintView = class {
params.append("letterhead", letterhead);
}
iframe.prop("src", `/printpreview?${params.toString()}`);
setTimeout(() => {
iframe.css("height", "calc(100vh - var(--page-head-height) - var(--navbar-height))");
}, 500);
}
setup_print_format_dom(out, $print_format) {