90f4e0b746
Signed-off-by: dab246 <tdvu@linagora.com>
1.0 KiB
1.0 KiB
61. Fix iOS email view gone blank with large HTML content
Date: 2024-04-05
Status
Context
- On iOS, when using an
InAppWebViewinside aSingleChildScrollView, the height of theSingleChildScrollViewdepends on theInAppWebView. Continuously updating the height of theInAppWebViewup to a certain limit can cause theSingleChildScrollViewto fail to render, resulting in the content of theInAppWebViewnot being displayed.
Decision
- Workaround:
Set the maximum display height for content on iOS to 22,000 (not an absolute limit, but verified across various emails and found to be the most reasonable value).
If the email content exceeds this height, a View entire message button will be displayed at the bottom of the email.
When users click this button, they will be able to view the full email content, similar to previewing an EML file.
Consequences
- All emails display fine on iOS