From 4ea86706eb21cfcae4e2ffeb0c4f6485a7df70d9 Mon Sep 17 00:00:00 2001 From: ruqli Date: Tue, 15 Nov 2016 12:27:33 +0800 Subject: [PATCH] Fix layout --- Potatso/RuleSetCell.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Potatso/RuleSetCell.swift b/Potatso/RuleSetCell.swift index 6e20c64..3b327b2 100644 --- a/Potatso/RuleSetCell.swift +++ b/Potatso/RuleSetCell.swift @@ -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) { @@ -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