fix calc lines (#16005)

fix composer `calc-lines`
This commit is contained in:
Omar Basem 2023-05-24 14:22:44 +04:00 committed by GitHub
parent 6415c06398
commit 45da1a28df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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?]