Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 #595 的问题 #602

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Vertical text disappear by YYTextLayout’s wrong.
  • Loading branch information
cszwdy committed Jan 11, 2017
commit 0a41aa985d6f5d3c88d312c5d848bc5eea6d5887
7 changes: 4 additions & 3 deletions YYText/Component/YYTextLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,10 @@ + (YYTextLayout *)layoutWithContainer:(YYTextContainer *)container text:(NSAttri

if (constraintSizeIsExtended) {
if (isVerticalForm) {
if (rect.origin.x + rect.size.width >
constraintRectBeforeExtended.origin.x +
constraintRectBeforeExtended.size.width) break;
// if (rect.origin.x + rect.size.width >
// constraintRectBeforeExtended.origin.x +
// constraintRectBeforeExtended.size.width) break;
if (!CGRectIntersectsRect(rect, constraintRectBeforeExtended)) break;
} else {
if (rect.origin.y + rect.size.height >
constraintRectBeforeExtended.origin.y +
Expand Down