Closed lhorainemarinas closed 6 years ago
First of great plugin you have here! I
Thanks! Glad it helps!
My problem is that the height of the products section does not update it's height when I open one of the main category of the products
You'll have to make use of the reBuild
function. Just call it when the slider finishes opening.
$.fn.fullpage.reBuild();
First of great plugin you have here! I just have one concern with one of my project. http://sagami.tcapdm.com/ Please do click the 3rd menu to view the products.
I did used the option scrollOverflow: true, then I also linked the scrolloverflow.min.js My problem is that the height of the products section does not update it's height when I open one of the main category of the products because will be a slideDown effect for the sub category per main category of the product.
For reference here is my fullpage initialization code: `fp.fullpage({ navigation: true, navigationPosition: 'right', autoScrolling: true, verticalCentered: false, paddingTop: headerHeight, scrollOverflow: true, onLeave: function(index, nextIndex, direction) { $("#website .section .top-line, #website .section .bot-line").remove(); prevIndex = index; var d = $('#website .section:eq('+(nextIndex-1)+')').attr('id'), o = d.indexOf('-') < 0 ? d.lenth : d.indexOf('-'), id = d.substring(0, o); $('.tabs li[data-menuanchor^="'+id+'"]').addClass('active').siblings().removeClass('active'); fp.addClass('is_animating'); $('.sub-products').hide(); }, afterLoad: function(anchorLink, index) { adaptSize(); //for displaying dots for each carousel if ($body.is('[class=features]')) { $("#fp-nav ul li[id^='features']").css('display','block') } else if ($body.is('[class=about-us]')){ $("#fp-nav ul li").attr('style',''); $("#fp-nav ul li[id^='about-us']").css('display','block') } else { $("#fp-nav ul li").addClass("animated fadeIn").attr('style',''); }
For the accordion style of the sub categories here is my code: `var subProd = $(".sub-products"), subProd_hide = subProd.css('display') == 'none', productCat = $('.product-list-wrap .product-wrap');