Browse Source

Merge pull request #290 from charleshkang/develop

Fixed landscape layout for redView and fixed typo in Contributing.md
Robert Payne 9 years ago
parent
commit
527c3a0f3a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      CONTRIBUTING.md
  2. 1 1
      Example-iOS/demos/SimpleLayoutViewController.swift

+ 1 - 1
CONTRIBUTING.md

@@ -8,4 +8,4 @@ We gladly accept any PR's assuming they are well written, documented ( if necess
 
 
 Please use the issue tracker *strictly* for bugs you think are caused by a code issue in SnapKit. We’re very busy and as a free open source library do not have the time to adequately help with questions that are more tutorial/training in nature and recommend using Stack Overflow and Google as alternatives.
 Please use the issue tracker *strictly* for bugs you think are caused by a code issue in SnapKit. We’re very busy and as a free open source library do not have the time to adequately help with questions that are more tutorial/training in nature and recommend using Stack Overflow and Google as alternatives.
 
 
-Please do not be offended if we close your issue and reference this document. If you believe the issue is truely a fault in SnapKit’s codebase re-open it.
+Please do not be offended if we close your issue and reference this document. If you believe the issue is truly a fault in SnapKit’s codebase, re-open it.

+ 1 - 1
Example-iOS/demos/SimpleLayoutViewController.swift

@@ -67,7 +67,7 @@ class SimpleLayoutViewController: UIViewController {
 
 
             redView.snp_makeConstraints { make in
             redView.snp_makeConstraints { make in
                 make.top.equalTo(blackView.snp_bottom).offset(20.0)
                 make.top.equalTo(blackView.snp_bottom).offset(20.0)
-                make.left.equalTo(20.0)
+                make.right.equalTo(blackView.snp_left).offset(-20.0)
                 make.size.equalTo(CGSizeMake(100.0, 100.0))
                 make.size.equalTo(CGSizeMake(100.0, 100.0))
             }
             }