Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

normalize height value for toolbar

ammarahm-edf4ccaf41d258
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index ec957ef5f..e3710ecea 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -12,6 +12,7 @@ import {
eUnSubscribeEvent,
} from '../../services/EventManager';
import {getCurrentColors} from '../../utils/Colors';
+import { normalize } from '../../utils/SizeUtils';
import {sleep} from '../../utils/TimeUtils';
import EditorHeader from './EditorHeader';
import {
@@ -49,7 +50,7 @@ const Editor = React.memo(
const [resetting, setResetting] = useState(false);
const insets = useSafeAreaInsets();
const calculatedHeight =
- Dimensions.get('window').height - (insets.top + insets.bottom + 50);
+ Dimensions.get('window').height - (insets.top + insets.bottom + normalize(50));
const onLoad = async () => {
await onWebViewLoad(premiumUser, getCurrentColors());
};