Skip to content

Commit

Permalink
Merge f215d1d into 07149ac
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal-ryan-mcleod committed Jan 29, 2015
2 parents 07149ac + f215d1d commit 89517f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Core/Source/DTAttributedTextContentView.m
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,6 @@ - (void)layoutSubviewsInRect:(CGRect)rect

- (void)layoutSubviews
{
[super layoutSubviews];

if (!_isTiling && (self.bounds.size.width>1024.0 || self.bounds.size.height>1024.0))
{
if (![self.layer isKindOfClass:[CATiledLayer class]])
Expand All @@ -440,6 +438,8 @@ - (void)layoutSubviews
{
[self layoutSubviewsInRect:CGRectInfinite];
}

[super layoutSubviews];
}

- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx
Expand Down
4 changes: 2 additions & 2 deletions Core/Source/DTAttributedTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ - (void)dealloc

- (void)layoutSubviews
{
[super layoutSubviews];

[self attributedTextContentView];

// layout custom subviews for visible area
[_attributedTextContentView layoutSubviewsInRect:self.bounds];

[super layoutSubviews];
}

- (void)awakeFromNib
Expand Down

0 comments on commit 89517f0

Please sign in to comment.