From 6f81af4de497204c0fcb29b269ada7b88110149c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 13 Apr 2018 09:57:38 -0400 Subject: [PATCH] Bug 12123 - Make iframe large enough to remove scroll bars --- koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt index 0315dcd5e0..b0ad7e8b42 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt @@ -104,6 +104,14 @@ var rowid = $(this).data("noticeid"); $("#notice"+rowid).toggle(); $("#resend_notice"+rowid).toggle(); + var iframe = $("#notice"+rowid).children('iframe'); + // Adding some padding to the height and width to remove scrollbars + var height = iframe.get(0).contentWindow.document.body.scrollHeight + 25; + var width = iframe.get(0).contentWindow.document.body.scrollWidth + 25; + iframe.css({ + 'width': width + 'px', + 'height': height + 'px' + }); }); }); -- 2.15.1 (Apple Git-101)