TF-1573: add removeFocusAllInputEditorHeader function when EditorFocus

(cherry picked from commit 75aab88cd20a6429215d84a1a6ffbf78f8d3f146)
This commit is contained in:
ManhNTX
2023-03-18 21:41:23 +07:00
committed by Dat Vu
parent 7e580a3c0e
commit 5b7058992f
@@ -1516,6 +1516,7 @@ class ComposerController extends BaseController {
if (Platform.isAndroid) {
_collapseAllRecipient();
_autoCreateEmailTag();
removeFocusAllInputEditorHeader();
}
}
@@ -1528,7 +1529,6 @@ class ComposerController extends BaseController {
void _onChangeCursorOnMobile(List<int>? coordinates) {
final headerEditorMobileWidgetRenderObject = headerEditorMobileWidgetKey.currentContext?.findRenderObject();
if (headerEditorMobileWidgetRenderObject is RenderBox?) {
final headerEditorMobileSize = headerEditorMobileWidgetRenderObject?.size;
if (coordinates?[1] != null && coordinates?[1] != 0) {
@@ -1543,7 +1543,7 @@ class ComposerController extends BaseController {
if ((realCoordinateY) >= webViewEditorClientY) {
scrollController.jumpTo(
realCoordinateY.toDouble(),
realCoordinateY.toDouble() - (headerEditorMobileSize?.height ?? 0) / 2,
);
}
}