From 12e2d82009fed0d1695fc7d22490daf9c679873e Mon Sep 17 00:00:00 2001 From: James Magahern Date: Tue, 11 Oct 2022 15:04:59 -0700 Subject: [PATCH] Attempt to fix blank URL bar bug --- App/Titlebar and URL Bar/URLBar.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/App/Titlebar and URL Bar/URLBar.swift b/App/Titlebar and URL Bar/URLBar.swift index 8104415..9e8a3a3 100644 --- a/App/Titlebar and URL Bar/URLBar.swift +++ b/App/Titlebar and URL Bar/URLBar.swift @@ -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)