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

Section Header is animated #21

Open
fraserscottmorrison opened this issue Jun 12, 2014 · 1 comment
Open

Section Header is animated #21

fraserscottmorrison opened this issue Jun 12, 2014 · 1 comment

Comments

@fraserscottmorrison
Copy link
Contributor

I have an SLExpandableTableView that has a couple of sections, but only one section header. When one section expands there is a strange animation where a copy of the section header moves down (then disappears) see screen shots.

The only way Ive managed to fix it is to comment out the following in - (void)expandSection:(NSInteger)section animated:(BOOL)animated in your SLExpandableTableView class

    //[self scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:section]
    //            atScrollPosition:UITableViewScrollPositionTop
    //                    animated:animated];

Not sure if this is a bug in your code or if I can do a workaround in mine... any ideas?

PS. I love this class - best expandable table view around!

screen shot 2014-06-13 at 11 41 41 am

screen shot 2014-06-13 at 11 41 59 am

screen shot 2014-06-13 at 11 42 30 am

screen shot 2014-06-13 at 11 42 44 am

screen shot 2014-06-13 at 11 42 58 am

@OliverLetterer
Copy link
Owner

I never had such an issue before but I also don't think that I ever have used actual table header views with this class. I don't have much time to look into this issue right now. Maybe modeling that table header view as its own cell in its own section can be a workaround for now? If you find a fix, I would love to merge it with a corresponding test case that reproduces and fixes this issue :)

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