TF-884 Set default value for hideScrollBar

This commit is contained in:
dab246
2022-09-07 18:09:39 +07:00
committed by Dat H. Pham
parent 1dbbb468f2
commit b5d64f53be
@@ -26,7 +26,7 @@ String generateHtml(String content, {
double? minWidth, double? minWidth,
String? styleCSS, String? styleCSS,
String? javaScripts, String? javaScripts,
bool? hideScrollBar bool hideScrollBar = true,
}) { }) {
return ''' return '''
<!DOCTYPE html> <!DOCTYPE html>
@@ -40,7 +40,7 @@ String generateHtml(String content, {
min-width: ${minWidth ?? 0}px; min-width: ${minWidth ?? 0}px;
overflow: auto; overflow: auto;
} }
${hideScrollBar == true ? ''' ${hideScrollBar ? '''
.tmail-content::-webkit-scrollbar { .tmail-content::-webkit-scrollbar {
display: none; display: none;
} }