bigSlide.js icon indicating copy to clipboard operation
bigSlide.js copied to clipboard

Right side is not working if left side is also existing

Open khoand0000 opened this issue 9 years ago • 3 comments

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

khoand0000 avatar Feb 16 '16 11:02 khoand0000

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!

ascott1 avatar Feb 16 '16 11:02 ascott1

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.

khoand0000 avatar Feb 16 '16 11:02 khoand0000

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.

ascott1 avatar Feb 16 '16 12:02 ascott1