Attempt to fix blank URL bar bug

This commit is contained in:
2022-10-11 15:04:59 -07:00
parent 6be801420c
commit 12e2d82009

View File

@@ -292,6 +292,7 @@ class URLBar: ReliefButton
UIColor(white: 1.0, alpha: 0.08).cgColor
]
let cutoffLocation = CGFloat.minimum(0.9, cutoffLocation)
let locations: [CGFloat] = [
0.0, cutoffLocation, cutoffLocation + 0.10, 1.0
]
@@ -343,6 +344,9 @@ class URLBar: ReliefButton
)
documentSeparatorView.frame = documentSeparatorView.frame.insetBy(dx: 0.0, dy: 3.0)
// Text field controls
controlsView.frame = CGRect(origin: .zero, size: controlsView.sizeThatFits(bounds.size))
// Text field
let textFieldPadding: CGFloat = 6.0
let textFieldOrigin = CGPoint(x: documentButton.frame.maxX + textFieldPadding, y: 0.0)