This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Horizontal Layout - layout attributes for supplementary items changed without invalidating the layout. #49
Labels
bug
Something isn't working
Comments
I got this crash today. I'm gonna take a stab at solving it :) |
I think I might be one to something now, will make a PR if I land on something! |
It seems like From Googling the issue, it looks like a common issue with using headers in collection views since Apple introduced features like I didn't manage to solve it properly so I'll un-assign this issue from me for the time being. |
Bah, this needs fixing but haven't had any time to fix this properly yet... Life keeps getting in the way. |
Fixing this might as well go hand in hand with #35, at least I think so... they are kinda related in a way. |
zenangst
pushed a commit
that referenced
this issue
Jan 2, 2019
* Ensure that the header attributes are only added per section Currently adds per items per section which causes conflicting values * Updating tests to take into account the header and footer size and position * Fix tests on macOS * Revert "Fix tests on macOS" This reverts commit d3e79ed. * Improve setting the width of headeras and footers * Fix warning to trigger travis-ci.com build
christoff-1992
added a commit
that referenced
this issue
Jan 7, 2019
zenangst
added a commit
that referenced
this issue
Jan 14, 2019
* Inital layout changes to support stickyHeaders in the vertical layout. TODO: 1. Investigate and resolve any performance hits 2. Move common code for reuseability 3. Update example header and footer views 4. Update / add tests 5. Implement logic for footers * Remove commented out code now that #49 has been fixed and closed. * [WIP] - Calculate the footer logic in prepare * [WIP] - Testing different approaches * Fixed calculations for the postion of the footer when sticky footers are been used * fix calculations for footer attributes * Update cell background colour for when sticky headers/footers are been used * Remove comments * Storyboard update Automatic customModule update * Patch sticky headers branch (#59) * Fix crash by not calling layoutIfNeeded Avoids crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' * Load injection bundle for faster debugging * Improve shouldInvalidateLayout function in vertical layout * Add shouldInvalidateLayout to HorizontalBlueprintLayout * Add link to InjectionIII
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If headers and footers are been used the horizontal layout will crash when been set.
The text was updated successfully, but these errors were encountered: