Support UIViewContentModeCenter with ASImageNode

This commit is contained in:
Ryan Nystrom
2014-12-05 15:25:55 -08:00
parent db085c49be
commit 647a9409d6
3 changed files with 4 additions and 2 deletions

View File

@@ -181,7 +181,8 @@
|| alphaInfo == kCGImageAlphaPremultipliedLast;
BOOL contentModeSupported = contentMode == UIViewContentModeScaleAspectFill
|| contentMode == UIViewContentModeScaleAspectFit;
|| contentMode == UIViewContentModeScaleAspectFit
|| contentMode == UIViewContentModeCenter;
CGSize backingSize;
CGRect imageDrawRect;