mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 10:42:19 +00:00
Fixed: Aristo3 - Various _CPImageAndTextView bugs (#2914)
This commit is contained in:
1 parent
93fc8d29cc
commit
3d514b5010
11 files changed
+1037
No files matched your search
@@ -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