Skip to content

Commit

Permalink
Fix autoresizingMask for right menu position
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Sahaidak committed Apr 3, 2020
1 parent b19740a commit 0882bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SideMenu/MenuTransitionAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extension MenuTransitionAnimator {
case .right:
let x = host.view.bounds.width - menu.preferredContentSize.width
view.frame = CGRect(x: x, y: 0, width: menu.preferredContentSize.width, height: host.view.bounds.height)
view.autoresizingMask = [.flexibleRightMargin, .flexibleHeight]
view.autoresizingMask = [.flexibleLeftMargin, .flexibleHeight]
}

view.translatesAutoresizingMaskIntoConstraints = true
Expand Down

0 comments on commit 0882bef

Please sign in to comment.