-
Notifications
You must be signed in to change notification settings - Fork 86
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
Layout problem when there are many attachments #113
Comments
…charset encodings based on #113 by jsfan3
Not decoding the filenames with this charset made them longer, that should be fixed with the commit just now. For the long term, it could be good to just scroll the entire message view (especially with top/down view). But that's not currently possible because the webmail code doesn't have access to the isolated iframe that holds the message, so can't read its size, so the full message view height can't be calculated. Perhaps there is a different solution, or perhaps the isolation can be relaxed a bit (the open question for me is whether that is safe to do). |
I am not familiar with this coding problem, and I also did not understand exactly what the problem is. However, communication between iframe and parent window is possible with the javascript Window.postMessage() method. It allows for safe cross-origin communication between the parent page and the iframe. You can have the iframe send a message to the parent window whenever its size changes (like when the content is fully loaded or if dynamic changes occur). This message would contain the height of the iframe's content. In the parent window, an event listener can get messages from the iframe. When a message is received, you can use the provided height to adjust the size of the iframe element in the parent document. Documentation: https://dev-bay.com/iframe-and-parent-window-postmessage-communication/ |
Please see this screenshot: there is not enough space for the email body. I suggest that attachments should be in a box that automatically collapses when the email is opened.
The text was updated successfully, but these errors were encountered: