Attempt to fix blank URL bar bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user