mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Changed comment for clarity.
This commit is contained in:
parent
354b972e73
commit
1ff07b2233
@ -161,7 +161,8 @@
|
|||||||
|
|
||||||
- (void)takeSnapshot
|
- (void)takeSnapshot
|
||||||
{
|
{
|
||||||
// set _snapshotNeeded to YES so if layout changes in the future, we'll try snapshotting again.
|
// If our size is zero, we want to avoid calling a default sized snapshot. Set _snapshotAfterLayout to YES
|
||||||
|
// so if layout changes in the future, we'll try snapshotting again.
|
||||||
ASLayout *layout = self.calculatedLayout;
|
ASLayout *layout = self.calculatedLayout;
|
||||||
if (layout == nil || CGSizeEqualToSize(CGSizeZero, layout.size)) {
|
if (layout == nil || CGSizeEqualToSize(CGSizeZero, layout.size)) {
|
||||||
_snapshotAfterLayout = YES;
|
_snapshotAfterLayout = YES;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user