Weird scroll bar in email view#583

This commit is contained in:
ManhNTX
2022-07-14 00:14:57 +07:00
committed by Dat H. Pham
parent 37e4cfde16
commit 8932c1b84c
2 changed files with 11 additions and 2 deletions
@@ -42,8 +42,17 @@ String generateHtml(String content, {
resize: ${resize ?? 'both'};
min-height: ${minHeight ?? 0}px;
min-width: ${minWidth ?? 0}px;
overflow: ${hideScrollBar == true ? 'hidden' : 'auto'};
overflow: auto;
}
${hideScrollBar == true ? '''
.tmail-content::-webkit-scrollbar {
display: none;
}
.tmail-content {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
''' : ''}
${styleCSS ?? ''}
</style>
${javaScripts ?? ''}
@@ -55,7 +55,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
}
String _generateHtmlDocument(String content) {
final htmlTemplate = generateHtml(content, hideScrollBar: false);
final htmlTemplate = generateHtml(content);
return htmlTemplate;
}