Skip to content
Browse files

request subview for attachment, even if frame size is zero

This way a lazily loaded image view gets a chance.
  • Loading branch information...
1 parent 6fff25d commit c1b1f1bc7dc43f74e8ad9a65ae7eb98bf8a755ed @odrobnik odrobnik committed Apr 2, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Core/Source/DTAttributedTextContentView.m
View
3 Core/Source/DTAttributedTextContentView.m
@@ -233,7 +233,8 @@ - (void)layoutSubviewsInRect:(CGRect)rect
}
}
- if (CGRectIsEmpty(frameForSubview))
+ // if there is an attachment then we continue even with empty frame, might be a lazily loaded image
+ if (CGRectIsEmpty(frameForSubview) && !attachment)
{
continue;
}

0 comments on commit c1b1f1b

Please sign in to comment.
Something went wrong with that request. Please try again.