Fix long email content is cut off on android

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit cb53edf0eed467b40fefa85f7390dc3f5cfa6c35)
This commit is contained in:
dab246
2023-10-13 15:42:43 +07:00
committed by Dat H. Pham
parent 01ea3c4dbe
commit 72ba6d4145
4 changed files with 251 additions and 255 deletions
@@ -46,11 +46,13 @@ class SignatureBuilder extends StatelessWidget {
direction: AppUtils.getCurrentDirection(context),
);
} else {
return HtmlContentViewer(
contentHtml: signatureSelected,
heightContent: height,
direction: AppUtils.getCurrentDirection(context),
);
return LayoutBuilder(builder: (context, constraints) {
return HtmlContentViewer(
contentHtml: signatureSelected,
initialWidth: constraints.maxWidth,
direction: AppUtils.getCurrentDirection(context),
);
});
}
} else {
return SizedBox(width: width, height: height);