Skip to content

Commit

Permalink
fix intrinsicContentSize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amao committed Dec 4, 2018
1 parent afd49b4 commit 58895dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion M80AttributedLabel.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'M80AttributedLabel'
s.version = '1.8.0'
s.version = '1.8.1'
s.authors = {'Xiang Wangfeng' => '[email protected]'}
s.homepage = 'https://github.com/xiangwangfeng/M80AttributedLabel/'
s.summary = 'Another attributed label using CoreText'
Expand Down
2 changes: 1 addition & 1 deletion M80AttributedLabel/M80AttributedLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ - (CGSize)sizeThatFits:(CGSize)size
{
CFRelease(framesetter);
}
return CGSizeMake(MIN(ceilf(newSize.width) + 1, size.width), MIN(ceilf(newSize.height) + 1, size.height));
return CGSizeMake(ceilf(newSize.width) + 1, MIN(ceilf(newSize.height) + 1, size.height));
}


Expand Down

0 comments on commit 58895dd

Please sign in to comment.