Add comment for why lock is added.

This commit is contained in:
Garrett Moon
2016-05-05 10:02:29 -07:00
parent 025dd55312
commit dc56c060d0

View File

@@ -126,6 +126,8 @@
CGSize oldSize = self.calculatedSize;
[super __setNeedsLayout];
//Adding this lock because lock used to be held when this method was called. Not sure if it's necessary for
//didRelayoutFromOldSize:toNewSize:
ASDN::MutexLocker l(_propertyLock);
[self didRelayoutFromOldSize:oldSize toNewSize:self.calculatedSize];
}