Skip to content

Commit

Permalink
Fix web app reported viewport dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
laktyushin committed Dec 20, 2023
1 parent aba24a6 commit c3f15c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submodules/WebUI/Sources/WebAppController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
if let webView = self.webView {
let frame = CGRect(origin: CGPoint(x: layout.safeInsets.left, y: navigationBarHeight), size: CGSize(width: layout.size.width - layout.safeInsets.left - layout.safeInsets.right, height: max(1.0, layout.size.height - navigationBarHeight - layout.intrinsicInsets.bottom)))

var bottomInset = layout.intrinsicInsets.bottom - layout.additionalInsets.bottom
var bottomInset = layout.intrinsicInsets.bottom + layout.additionalInsets.bottom
if let inputHeight = self.validLayout?.0.inputHeight, inputHeight > 44.0 {
bottomInset = max(bottomInset, inputHeight)
}
Expand Down

0 comments on commit c3f15c4

Please sign in to comment.