Permalink
Browse files

Invoke -ancestorDidLayout at the correct points

  • Loading branch information...
jspahrsummers committed Jul 18, 2012
1 parent 864f17e commit 2c26c9f06822581bc5b38cf31a91ed9771d64b23
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/UIKit/TUIView.m
View
@@ -409,6 +409,7 @@ - (void)layoutSublayersOfLayer:(CALayer *)layer
{
[self layoutSubviews];
[self _blockLayout];
+ [self.subviews makeObjectsPerformSelector:@selector(ancestorDidLayout)];
}
- (BOOL)drawInBackground
@@ -549,6 +550,7 @@ - (CGRect)frame
- (void)setFrame:(CGRect)f
{
self.layer.frame = f;
+ [self.subviews makeObjectsPerformSelector:@selector(ancestorDidLayout)];
}
- (CGRect)bounds
@@ -559,6 +561,7 @@ - (CGRect)bounds
- (void)setBounds:(CGRect)b
{
self.layer.bounds = b;
+ [self.subviews makeObjectsPerformSelector:@selector(ancestorDidLayout)];
}
- (void)setCenter:(CGPoint)c
@@ -567,6 +570,7 @@ - (void)setCenter:(CGPoint)c
f.origin.x = c.x - f.size.width / 2;
f.origin.y = c.y - f.size.height / 2;
self.frame = f;
+ [self.subviews makeObjectsPerformSelector:@selector(ancestorDidLayout)];
}
- (CGPoint)center

0 comments on commit 2c26c9f

Please sign in to comment.