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:
+7
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user