Skip to content

should recalculateAndPrepareLayout take section insets into account when determining section frame? #136

Description

@spilliams

I see that a JNWCollectionViewData ("Data") object assigns its sections' frames in -recalculateAndPrepareLayout: (line 89). It appears to do this entirely based on the sections' items (as given by the data source's -collectionView:numberOfItemsInSection:.

I also see that Data adds space for supplementary items (header and footer views).

Shouldn't Data also take into account each section's insets?

I noticed this when debugging my purely-horizontal layout. The scroll view would not let me scroll to see all of my content. In my case, I'm using left and right insets of 130, (and top and bottom of 0). In the short-term I think I can workaround this by overriding my layout's -rectForSectionAtIndex:, but I wondered if this was a bug in the overarching framework.

Thanks!
Spencer

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