Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #8364: Add missing footer constraint when bottom toolbar is hidden
Browse files Browse the repository at this point in the history
Missing this constraint would cause the web view container view to have ambiguous height and result in a 0-height web page.
  • Loading branch information
kylehickinson committed Nov 7, 2023
1 parent d35a66a commit 09f7c8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Brave/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09f7c8f

Please sign in to comment.