fix for iPhone 14

This commit is contained in:
Mauro Romito
2022-11-30 13:41:08 +01:00
parent a7953c092b
commit 7bb758ad3e

View File

@@ -296,7 +296,12 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
private func updateTextViewHeight() {
let height = UIScreen.main.bounds.height
let barOffset: CGFloat = 68
let barOffset: CGFloat
if let topSafeArea = window?.safeAreaInsets.top, topSafeArea >= 68 {
barOffset = topSafeArea
} else {
barOffset = 68
}
let toolbarHeight: CGFloat = 96
let finalHeight = height - keyboardHeight - toolbarHeight - barOffset
wysiwygViewModel.maxExpandedHeight = finalHeight