Skip to content

Layout of second page is misaligned #11

Description

@S0nnyHoang

Hi,

At first I wanna say thank you for making this, I'm using it to make an 3x3 grid layout with paging enable. But I have a problem when scroll to second page, the layout of this page is not 3x3 anymore.
You can see the image about problem here: https://i.stack.imgur.com/nzkPA.png
And here is my setting for grid 3x3 layout:

KRLCollectionViewGridLayout *flowLayout = [[KRLCollectionViewGridLayout alloc] init]; flowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal; flowLayout.aspectRatio = 1; flowLayout.sectionInset = UIEdgeInsetsMake(2, 25, 10, 15); flowLayout.interitemSpacing = 25; flowLayout.lineSpacing = 25; flowLayout.numberOfItemsPerLine = 3;

I have to raise a help in StackOverflow but doesn't receive the solution, can you take a look at this? https://stackoverflow.com/questions/53130283/uicollectionview-contentoffset-wrong-from-second-page

Do you know how to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions