Customized user scripts/stylesheets: iPhone fixes

This commit is contained in:
James Magahern
2021-12-16 19:05:10 -08:00
parent b79f0ac5db
commit a13aab99b2
4 changed files with 20 additions and 11 deletions

View File

@@ -120,7 +120,7 @@ class BrowserView: UIView
// Compact: toolbar is at the bottom
if traitCollection.horizontalSizeClass == .compact {
var bottomOffset: CGFloat = 0.0
if keyboardLayoutOffset == 0 {
if keyboardLayoutOffset < CGFloat.leastNonzeroMagnitude {
toolbarSize.height += safeAreaInsets.bottom
} else if toolbarView.urlBar?.textField.isFirstResponder ?? false {
bottomOffset = keyboardLayoutOffset