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

Tapping on the last header collapses its view leaving a white space under it #11

Closed
Isuru-Nanayakkara opened this issue Jan 24, 2014 · 4 comments

Comments

@Isuru-Nanayakkara
Copy link

First off thanks for the cool control. I seem to have found some sorta bug in it.

I have a accordion view 5 headers and a view attached to each of them. Initially it looks like this.

screen shot 2014-01-24 at 11 25 35 pm

Say I tap on the last header and now it looks like this,

screen shot 2014-01-24 at 11 26 42 pm

But then I tap on the orange header again and it's view closes leaving a white space beneath it. Like so,

screen shot 2014-01-24 at 11 28 37 pm

How can I stop this from happening? Is there a property I'm missing out or is this really a bug?

Thank you.

@suda
Copy link
Member

suda commented Jan 25, 2014

Well it's not a bug, you've just collapsed all panels :) White background belongs to accordion view and can be changed with accordion.backgroundColor = [UIColor clearColor]

I can add allowsEmptySelection property which would disable this behavior (would force at least one open panel) if you need this.

@Isuru-Nanayakkara
Copy link
Author

Hi Suda, thanks for the prompt response. Yes please can you add it? That would be great! :)

@suda
Copy link
Member

suda commented Jan 25, 2014

@Isuru-Nanayakkara check out now :)

@Isuru-Nanayakkara
Copy link
Author

Works perfect! Thanks, man. I really appreciate it! :) 👍

@suda suda closed this as completed Jan 25, 2014
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