mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 02:08:55 +00:00
fixed: images did not show in alert panels
This commit is contained in:
1 parent
a2786a9aee
commit
579814a5de
2 files changed
+6
-10
No files matched your search
@@ -400,12 +400,6 @@ var CPImageViewEmptyPlaceholderImage = nil;
|
||||
#if PLATFORM(DOM)
|
||||
_DOMImageElement.width = ROUND(width);
|
||||
_DOMImageElement.height = ROUND(height);
|
||||
|
||||
if ([image isCSSBased])
|
||||
{
|
||||
_DOMImageElement.style.width = _DOMImageElement.width + 'px';
|
||||
_DOMImageElement.style.height = _DOMImageElement.height + 'px';
|
||||
}
|
||||
#endif
|
||||
|
||||
var x,
|
||||
@@ -464,6 +458,12 @@ var CPImageViewEmptyPlaceholderImage = nil;
|
||||
styleNode:_cssStyleNode
|
||||
previousState:@ref(_cssStylePreviousState)];
|
||||
}
|
||||
|
||||
if ([image isCSSBased])
|
||||
{
|
||||
_DOMImageElement.style.width = _DOMImageElement.width + 'px';
|
||||
_DOMImageElement.style.height = _DOMImageElement.height + 'px';
|
||||
}
|
||||
#endif
|
||||
|
||||
_imageRect = CGRectMake(x, y, width, height);
|
||||
|
||||
@@ -4984,7 +4984,6 @@ var themedButtonValues = nil,
|
||||
defaultElementsMargin = 3.0,
|
||||
|
||||
errorIcon = [CPImage imageWithCSSDictionary:@{
|
||||
@"content": @"''", // REQUIRED for visibility
|
||||
@"background-image": svgAlertIconError,
|
||||
@"background-size": @"contain",
|
||||
@"background-repeat": @"no-repeat",
|
||||
@@ -4992,7 +4991,6 @@ var themedButtonValues = nil,
|
||||
} size:CGSizeMake(53, 46)],
|
||||
|
||||
helpIcon = [CPImage imageWithCSSDictionary:@{
|
||||
@"content": @"''", // REQUIRED for visibility
|
||||
@"background-image": svgAlertIconError,
|
||||
@"background-size": @"contain",
|
||||
@"background-repeat": @"no-repeat",
|
||||
@@ -5000,7 +4998,6 @@ var themedButtonValues = nil,
|
||||
} size:CGSizeMake(24, 24)],
|
||||
|
||||
informationIcon = [CPImage imageWithCSSDictionary:@{
|
||||
@"content": @"''", // REQUIRED for visibility
|
||||
@"background-image": svgAlertIconError,
|
||||
@"background-size": @"contain",
|
||||
@"background-repeat": @"no-repeat",
|
||||
@@ -5008,7 +5005,6 @@ var themedButtonValues = nil,
|
||||
} size:CGSizeMake(53, 46)],
|
||||
|
||||
warningIcon = [CPImage imageWithCSSDictionary:@{
|
||||
@"content": @"''", // REQUIRED for visibility
|
||||
@"background-image":svgAlertIconError,
|
||||
@"background-size": @"contain",
|
||||
@"background-repeat": @"no-repeat",
|
||||
|
||||
Reference in new issue
Block a user