Skip to content

Commit

Permalink
Fixed list item alignment bug in iOS12
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgoutaland committed Jan 7, 2019
1 parent 328b21c commit 76eac28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## [__0.8.1__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.8.1)
Fixed list alignment bug in iOS12<br/>
## [__0.8.0__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.8.0)
Improved Paragraph layout<br/>
Improved List Item layout<br/>
Expand Down
2 changes: 1 addition & 1 deletion Classes/GONMarkupListItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)openingMarkupFound:(NSString *)tag
resultString:resultString];

// Compute prefix string width
paragraphStyle.headIndent = CGRectGetWidth([prefixString boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, 1)
paragraphStyle.headIndent = CGRectGetWidth([prefixString boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)
options:NSStringDrawingUsesLineFragmentOrigin
context:nil]);
}
Expand Down
2 changes: 1 addition & 1 deletion GONMarkupParser.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "GONMarkupParser"
s.version = "0.8.0"
s.version = "0.8.1"
s.summary = "NSAttributedString generation from NSString using XML, that can be easily extended."
s.platform = :ios, "7.0"
s.description = <<-DESC
Expand Down

0 comments on commit 76eac28

Please sign in to comment.