This commit is contained in:
ricky cancro
2015-08-12 15:29:26 -07:00
parent b4e6591ad8
commit 3bc692c938
2 changed files with 5 additions and 2 deletions

View File

@@ -111,6 +111,7 @@
- (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
{
ASDN::MutexLocker l(_imageLock);
// if a preferredFrameSize is set, call the superclass to return that instead of using the image size.
if (CGSizeEqualToSize(self.preferredFrameSize, CGSizeZero) == NO)
return [super calculateSizeThatFits:constrainedSize];
else if (_image)