frame fix

This commit is contained in:
Grigory Ulanov 2016-10-29 22:50:06 +03:00
parent b346984634
commit af3d342eb1
1 changed files with 2 additions and 2 deletions

View File

@ -63,10 +63,10 @@ class SKNavigationBar: UIView {
override func layoutSubviews() {
if UIDevice.current.orientation == .portrait {
countLabel?.frame = CGRect(x: 0, y: 20, width: bounds.width, height: bounds.height)
doneButton?.frame = CGRect(x: 20, y: 20, width: 80, height: bounds.height)
doneButton?.frame = CGRect(x: 0, y: 20, width: 85, height: bounds.height)
} else {
countLabel?.frame = bounds
doneButton?.frame = CGRect(x: 20, y: 0, width: 80, height: bounds.height)
doneButton?.frame = CGRect(x: 0, y: 0, width: 85, height: bounds.height)
}
}