Skip to content

Commit

Permalink
Fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ruqli committed Nov 15, 2016
1 parent ad92dce commit 4ea8670
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Potatso/RuleSetCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class RuleSetCell: UITableViewCell {
subscribeFlagLabel.leading == leftHintView.leading
subscribeFlagLabel.top == leftHintView.bottom + 8
}
constrain(subscribeFlagLabel) { subscribeFlagLabel in
subscribeFlagLabel.height == 20
}
}

required init?(coder aDecoder: NSCoder) {
Expand All @@ -79,7 +82,7 @@ class RuleSetCell: UITableViewCell {
if showSubscribe && ruleSet.isSubscribe {
subscribeFlagLabel.hidden = false
bottomView = subscribeFlagLabel
}else {
} else {
subscribeFlagLabel.hidden = true
if ruleSet.desc.characters.count > 0 {
bottomView = descLabel
Expand Down

0 comments on commit 4ea8670

Please sign in to comment.