New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFRAME not taking all height on HTML mail preview #26
Comments
Thanks @nexces - I tried with it set to 100% and it didn't seem to work consistently. It currently attempts to resize the IFRAME when you select a message, so it breaks if you open developer tools, or resize the window, once its already in preview mode. But aside from that, it should work - I'll have a look today. |
I don't know how tabs are handled but div.tab-content has fixed height that is set just once (on page load) and does not update when window is resized. |
It might be a timing bug though - AngularJS doesn't (or, didn't) give any straightforward way to hook into "after rendering the changes i'm about to make", i.e., to be able to wait until AngularJS has rendered the tabs and panes before attempting to resize them. For me, pushing the resize call to the end of the event loop (with a timer set to 0) was enough to let the browser finish rendering, but that might not be enough for everyone. The You're right about resize - none of it hooks into any window events, which does mean resizing or opening developer tools etc will break it. The UI was mostly inherited from the old MailHog, and the recent rewrite probably didn't go far enough. Ideally I'd rather handle all of this without needing Javascript to avoid all this mess 😄 I'll have a look at it asap! |
To be honest I didn't analyze how you've done tabs - is it your own solution or is it some kind of plugin/library. So... that was me thinking out loud :D EDIT: |
The tabs are done with bootstrap, hooked into with angulars I'll have another go at fixing it - there's a lot of old unnecessary code and CSS left in there from the previous UI which I've been meaning to remove, cleaning all that up might make it easier to fix! |
I think this is fixed with the latest UI changes - reopen if its still a problem 😄 |
I am still having height issues with the latest release. |
Me too, specially when I click the browser notification, it leads me to an iframe with 0 height. |
This is still an issue 4 years later unless I am missing something |
IFRAME height defaults to browser default which is 150px on chrome and in effect mail preview is limited to a small scrollable stripe.
My fix was to set IFRAME height to 100%.
The text was updated successfully, but these errors were encountered: