mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-06 18:57:12 +00:00
Fixed: Aristo3 - Various _CPImageAndTextView bugs (#2914)
This commit is contained in:
@@ -680,6 +680,13 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
|
||||
imageWidth *= scale;
|
||||
imageHeight *= scale;
|
||||
}
|
||||
else if (_imageScaling === CPImageScaleProportionallyUpOrDown)
|
||||
{
|
||||
var scale = MIN(size.width / imageWidth, size.height / imageHeight);
|
||||
|
||||
imageWidth *= scale;
|
||||
imageHeight *= scale;
|
||||
}
|
||||
|
||||
if (CPFeatureIsCompatible(CPOpacityRequiresFilterFeature))
|
||||
imageStyle.filter = @"alpha(opacity=" + _shouldDimImage ? 50 : 100 + ")";
|
||||
|
||||
Reference in New Issue
Block a user