mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 07:25:52 +00:00
A few minor adjustments to CPImageView nib support.
Reviewed by me.
This commit is contained in:
1 parent
fb3c43ef6a
commit
32372c68cd
2 files changed
+8
-1
No files matched your search
@@ -334,8 +334,10 @@ var LEFT_SHADOW_INSET = 3.0,
|
||||
|
||||
var x = (boundsWidth - width) / 2.0,
|
||||
y = (boundsHeight - height) / 2.0;
|
||||
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
CPDOMDisplayServerSetStyleLeftTop(_DOMImageElement, NULL, x, y);
|
||||
#endif
|
||||
}
|
||||
|
||||
_imageRect = _CGRectMake(x, y, width, height);
|
||||
|
||||
@@ -41,6 +41,11 @@ var _CPCibCustomResourceClassNameKey = @"_CPCibCustomResourceClassNameKey",
|
||||
return "";
|
||||
}
|
||||
|
||||
- (CGSize)size
|
||||
{
|
||||
return CGSizeMakeZero();
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
Reference in new issue
Block a user