mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
Moved tiling to drawRect: in _CPDOMImageAndTitleView.
Reviewed by me.
This commit is contained in:
1 parent
add96e9c04
commit
986a8815ff
1 file changed
+6
-11
@@ -111,7 +111,7 @@
|
||||
[self createOrDestroyDOMTextElement];
|
||||
#endif
|
||||
|
||||
[self tile];
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (CPCellImagePosition)imagePosition
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
_imageScaling = anImageScaling;
|
||||
|
||||
[self tile];
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (void)imageScaling
|
||||
@@ -164,7 +164,7 @@
|
||||
|
||||
_titleSize = NULL;
|
||||
|
||||
[self tile];
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (CPFont)font
|
||||
@@ -219,7 +219,7 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
[self tile];
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (CPImage)image
|
||||
@@ -280,7 +280,7 @@
|
||||
|
||||
_titleSize = NULL;
|
||||
|
||||
[self tile];
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (CPString)title
|
||||
@@ -288,7 +288,7 @@
|
||||
return _title;
|
||||
}
|
||||
|
||||
- (void)tile
|
||||
- (void)drawRect:(CGRect)aRect
|
||||
{
|
||||
if (!_titleSize && _DOMTextElement)
|
||||
_titleSize = [_title sizeWithFont:_font];
|
||||
@@ -418,9 +418,4 @@
|
||||
[self setFrameSize:size];
|
||||
}
|
||||
|
||||
- (void)resizeSubviewsWithOldSize:(CGSize)aSize
|
||||
{
|
||||
[self tile];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user