Skip to content

Commit d6711ba

Browse files
dab246hoangdat
authored andcommitted
TF-3601 Add adr for issue fix iOS email view gone blank with large HTML content
Signed-off-by: dab246 <[email protected]>
1 parent 7342bbc commit d6711ba

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# 58. Fix iOS email view gone blank with large HTML content
2+
3+
Date: 2024-04-05
4+
5+
## Status
6+
7+
- Issues:
8+
- [iOS Email view gone blank with large HTML content #3601](https://github.com/linagora/tmail-flutter/issues/3601)
9+
10+
## Context
11+
12+
- On iOS, when using an `InAppWebView` inside a `SingleChildScrollView`, the height of the `SingleChildScrollView` depends on the `InAppWebView`.
13+
Continuously updating the height of the `InAppWebView` up to a certain limit can cause the `SingleChildScrollView` to fail to render,
14+
resulting in the content of the `InAppWebView` not being displayed.
15+
16+
## Decision
17+
18+
- Workaround:
19+
20+
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).
21+
If the email content exceeds this height, a `View entire message` button will be displayed at the bottom of the email.
22+
When users click this button, they will be able to view the full email content, similar to previewing an EML file.
23+
24+
25+
## Consequences
26+
27+
- All emails display fine on iOS

0 commit comments

Comments
 (0)