Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a70e8a011f |
@@ -111,6 +111,7 @@ class _SecureEmailWebViewState extends State<SecureEmailWebView> {
|
||||
);
|
||||
|
||||
Future<void> _measureHeight(String _) async {
|
||||
try {
|
||||
final result = await _controller!.runJavaScriptReturningResult(
|
||||
'document.documentElement.scrollHeight',
|
||||
);
|
||||
@@ -118,6 +119,9 @@ class _SecureEmailWebViewState extends State<SecureEmailWebView> {
|
||||
if (h != null && h > 0 && mounted) {
|
||||
setState(() => _height = h);
|
||||
}
|
||||
} catch (_) {
|
||||
// WebView not ready yet; height stays at default
|
||||
}
|
||||
}
|
||||
|
||||
NavigationDecision _handleNavigation(NavigationRequest req) {
|
||||
|
||||
Reference in New Issue
Block a user