Skip to content
This repository has been archived by the owner on Sep 15, 2019. It is now read-only.

Commit

Permalink
Fixed minor constraint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Satinder Singh committed Mar 25, 2017
1 parent 06a650a commit 0974c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SnapLayout/Classes/SnapLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public extension UIView {
constraintManager.width = widthAnchor.constraint(equalToConstant: width)
}
if let height = height {
constraintManager.height = widthAnchor.constraint(equalToConstant: height)
constraintManager.height = heightAnchor.constraint(equalToConstant: height)
}
if let centerX = centerX, centerX {
constraintManager.centerX = centerXAnchor.constraint(equalTo: view.centerXAnchor)
Expand Down

0 comments on commit 0974c73

Please sign in to comment.