Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeping menu collectionview top to of tableview at all times #9

Closed
johnamcruz opened this issue May 2, 2015 · 3 comments
Closed

Keeping menu collectionview top to of tableview at all times #9

johnamcruz opened this issue May 2, 2015 · 3 comments

Comments

@johnamcruz
Copy link

I noticed that if you pull the collectionview down further it will move down. Is there a way to lock the menu collectionview so it stays on the top regardless?

@dimazen
Copy link
Contributor

dimazen commented May 3, 2015

@johnamcruz I'm sure this feature can be added quite easily.
Probably, I'll try to reuse UIView.contentMode in order to achieve different layout "gravity".

@dimazen
Copy link
Contributor

dimazen commented May 3, 2015

@johnamcruz if you really need this feature urgent go to https://github.com/Yalantis/Persei/blob/master/Persei/Source/Core/StickyHeaderView.swift#L236

Roughly you need to replace this line by y: bounds.height - contentHeight

@dimazen
Copy link
Contributor

dimazen commented Aug 22, 2015

@johnamcruz if this is still relevant check out version 1.1 with new StickyHeaderView.contentViewGravity variable.

Usage:

let headerView = MenuView() 
headerView.contentViewGravity = .Top

@dimazen dimazen closed this as completed Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants