TF-295 Remove duplication vertical scrollbar in EmailDetailView

This commit is contained in:
dab246
2022-03-14 18:03:17 +07:00
committed by Dat H. Pham
parent 5636625fa5
commit 8c66ef9105
@@ -125,7 +125,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb> {
..height = actualHeight.toString()
..srcdoc = _htmlData ?? ''
..style.border = 'none'
..style.overflowY = 'hidden'
..style.overflow = 'hidden'
..onLoad.listen((event) async {
var data = <String, Object>{'type': 'toIframe: getHeight'};
data['view'] = createdViewId;
@@ -173,6 +173,9 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb> {
});
});
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('seamless', 'seamless');
ui.platformViewRegistry.registerViewFactory(createdViewId, (int viewId) => iframe);
if (mounted) {