From 45da1a28df271ca2accd3d92918c493031d3c4f9 Mon Sep 17 00:00:00 2001 From: Omar Basem Date: Wed, 24 May 2023 14:22:44 +0400 Subject: [PATCH] fix calc lines (#16005) fix composer `calc-lines` --- src/status_im2/contexts/chat/composer/utils.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/status_im2/contexts/chat/composer/utils.cljs b/src/status_im2/contexts/chat/composer/utils.cljs index 8300cbd5f9..70fb0a052b 100644 --- a/src/status_im2/contexts/chat/composer/utils.cljs +++ b/src/status_im2/contexts/chat/composer/utils.cljs @@ -62,8 +62,7 @@ (defn calc-lines [height] - (let [lines (Math/round (/ height constants/line-height))] - (if platform/ios? lines (dec lines)))) + (Math/floor (/ height constants/line-height))) (defn calc-extra-content-height [images? link-previews? reply? edit?]