From ec74033074eadc18686275d7edaae9028ae859a0 Mon Sep 17 00:00:00 2001 From: huangzhifei Date: Tue, 2 Jan 2018 16:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=B6=E5=B0=94=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E8=AE=A1=E7=AE=97=E4=B8=8D=E5=87=86=E7=A1=AE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SKTagView/SKTagView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SKTagView/SKTagView.m b/SKTagView/SKTagView.m index 27e1217..093215d 100644 --- a/SKTagView/SKTagView.m +++ b/SKTagView/SKTagView.m @@ -74,7 +74,7 @@ -(CGSize)intrinsicContentSize { } - (void)layoutSubviews { - if (!self.singleLine) { + if (!self.singleLine && self.preferredMaxLayoutWidth <= 0) { self.preferredMaxLayoutWidth = self.frame.size.width; }