From 6faaeed153a19bb2b89f57c9d3223c1bee8407f5 Mon Sep 17 00:00:00 2001 From: Robin Clowers Date: Fri, 2 Feb 2018 13:19:44 -0800 Subject: [PATCH] Fix collapsing html email preview In some cases, the css of an email may cause the `document.body.clientHeight` to report 0, which collapses the email preview iframe. Using `contentWindow.outerHeight` seems to work around this issue. --- lib/bamboo/plug/sent_email_viewer/index.html.eex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bamboo/plug/sent_email_viewer/index.html.eex b/lib/bamboo/plug/sent_email_viewer/index.html.eex index 8680e0cf..005e3d3e 100644 --- a/lib/bamboo/plug/sent_email_viewer/index.html.eex +++ b/lib/bamboo/plug/sent_email_viewer/index.html.eex @@ -175,8 +175,8 @@