From 09f7c8f51f31f0457541070ef14d0f3c1659f70b Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 7 Nov 2023 10:18:54 -0500 Subject: [PATCH] Fix #8364: Add missing footer constraint when bottom toolbar is hidden 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 5d2e92653b0..02fc2712fa7 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController.swift @@ -1301,6 +1301,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 {