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

Any way to hide/close leftWindow / leftDrawer with no animation? #29

Closed
bitfabrikken opened this issue Dec 3, 2013 · 2 comments
Closed

Comments

@bitfabrikken
Copy link
Contributor

Can't seem to figure this one out - anyone know how?
The best I can do is drawer.toggleLeftWindow(); - but that has animation - I want to close it immediately.

@viezel
Copy link
Owner

viezel commented Dec 3, 2013

Are we talking android?

Android:
Look at the source: https://github.com/viezel/NappDrawer/blob/master/android/src/dk/napp/drawer/DrawerProxy.java#L293

It should work if you parse false as the argument.

drawer.toggleLeftWindow(false); 

iOS:

as of now, its not possible, if you look here:
https://github.com/viezel/NappDrawer/blob/master/ios/Classes/DkNappDrawerDrawer.m#L258
The YES is hardcoded. But im open to receiving PRs if you wanna change that part.

@bitfabrikken
Copy link
Contributor Author

Ah yes of course Android, forgot to mention that.
Thanks for clarifying how to use it - just what I needed!

@viezel viezel closed this as completed Dec 8, 2013
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