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

Commit

Permalink
Ref #1826: Fixed constraint warning for bottom toolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhreis committed Oct 30, 2019
1 parent 801c11a commit da3737d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Client/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -867,15 +867,14 @@ class BrowserViewController: UIViewController {
// Setup the bottom toolbar
toolbar?.snp.remakeConstraints { make in
make.edges.equalTo(self.footer)
make.height.equalTo(UIConstants.BottomToolbarHeight)
}

footer.snp.remakeConstraints { make in
scrollController.footerBottomConstraint = make.bottom.equalTo(self.view.snp.bottom).constraint
make.leading.trailing.equalTo(self.view)
if self.toolbar == nil {
make.height.equalTo(0.0)
}

let height = self.toolbar == nil ? 0.0 : UIConstants.BottomToolbarHeight
make.height.equalTo(height)
}

topToolbar.setNeedsUpdateConstraints()
Expand Down

0 comments on commit da3737d

Please sign in to comment.