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

Right side is not working if left side is also existing #61

Open
khoand0000 opened this issue Feb 16, 2016 · 3 comments
Open

Right side is not working if left side is also existing #61

khoand0000 opened this issue Feb 16, 2016 · 3 comments

Comments

@khoand0000
Copy link

I want to implement left & right side nav similar to http://www.vouchercodes.co.uk/ but right side nav is not working. Because style of .wrap has left: 0px (left side causes it).

To solve it: set left: auto when toggling right side

@ascott1
Copy link
Owner

ascott1 commented Feb 16, 2016

To solve it: set left: auto when toggling right side

Does this resolve the issue? If so, does this just need to be documented?

Thanks!

@khoand0000
Copy link
Author

Hi ascott1,
Yes, I solved it by using beforeOpen. Full code is

        $('.left-menu-link').bigSlide({
                                          menu: '#left-menu',
                                          side: 'left'
                                      });
        $('.right-menu-link').bigSlide({
                                           menu      : '#right-menu',
                                           side      : 'right',
                                           beforeOpen: function () {
                                               $('.push').css('left', 'auto');
                                           }
                                       });

I think the plugin should take care the case when both 2 sides are existing.

Anyway, thank you for your great plugin.

@ascott1
Copy link
Owner

ascott1 commented Feb 16, 2016

I think the plugin should take care the case when both 2 sides are existing.

I agree! Thank you for documenting your fix in the meantime.

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