From bc216b9fce6feaee81c1b1926cc1856eb467e325 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 7 Nov 2023 11:01:20 -0500 Subject: [PATCH] Fix #8364: Add missing footer constraint when bottom toolbar is hidden (#8367) Missing this constraint would cause the web view container view to have ambiguous height and result in a 0-height web page. --- Sources/Brave/Frontend/Browser/BrowserViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Brave/Frontend/Browser/BrowserViewController.swift b/Sources/Brave/Frontend/Browser/BrowserViewController.swift index 11ab219b04f..288d24c4262 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController.swift @@ -1304,6 +1304,9 @@ public class BrowserViewController: UIViewController { footer.snp.remakeConstraints { make in make.bottom.equalTo(toolbarLayoutGuide) make.leading.trailing.equalTo(self.view) + if toolbar == nil { + make.height.equalTo(0) + } } bottomBarKeyboardBackground.snp.remakeConstraints {