Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Source/Details/ASCollectionLayoutContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ - (NSUInteger)hash
{
struct {
CGSize viewportSize;
ASScrollDirection scrollableDirections;
// Fields must be aligned without padding, otherwise hash result will be different for the same
// struct. That's why we use NSUInteger instead of ASScrollDirection.
NSUInteger scrollableDirections;
NSUInteger elementsHash;
NSUInteger layoutDelegateClassHash;
NSUInteger additionalInfoHash;
Expand Down