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

Commit

Permalink
Bug 1413690 - Reader mode toolbar needs to respect Safe Area insets f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonatasrm authored and farhanpatel committed Apr 3, 2018
1 parent e81daff commit bd2a34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/Frontend/Browser/ReaderModeBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ReaderModeBarView: UIView {
readStatusButton = createButton(.markAsRead, action: #selector(SELtappedReadStatusButton))
readStatusButton.accessibilityIdentifier = "ReaderModeBarView.readStatusButton"
readStatusButton.snp.makeConstraints { (make) -> Void in
make.left.equalTo(self)
make.left.equalTo(self.safeArea.left)
make.height.centerY.equalTo(self)
make.width.equalTo(80)
}
Expand All @@ -79,7 +79,7 @@ class ReaderModeBarView: UIView {
listStatusButton = createButton(.addToReadingList, action: #selector(SELtappedListStatusButton))
listStatusButton.accessibilityIdentifier = "ReaderModeBarView.listStatusButton"
listStatusButton.snp.makeConstraints { (make) -> Void in
make.right.equalTo(self)
make.right.equalTo(self.safeArea.right)
make.height.centerY.equalTo(self)
make.width.equalTo(80)
}
Expand Down

0 comments on commit bd2a34f

Please sign in to comment.