Skip to content

Commit

Permalink
Fix brave/brave-ios#8364: Add missing footer constraint when bottom t…
Browse files Browse the repository at this point in the history
…oolbar is hidden (brave/brave-ios#8367)

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 authored Nov 7, 2023
1 parent 535f29a commit 0891f04
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 0891f04

Please sign in to comment.