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

itemWidth dones't work if Modernizr is included? #1357

Open
gvinson opened this issue Jun 16, 2015 · 0 comments
Open

itemWidth dones't work if Modernizr is included? #1357

gvinson opened this issue Jun 16, 2015 · 0 comments

Comments

@gvinson
Copy link

gvinson commented Jun 16, 2015

I am having a problem where if I include modernizr (before or after initializing the slider), the itemWidth is ignored until I resize the window. If I set the animation to fade instead of slide, the bug does not occur.

Here is the code I'm using:

$(document).ready(function() {

// #carousel is the nav for #slider
$('#carousel').flexslider({
    animation: "slide",
    controlNav: false,
    animationLoop: true,
    slideshow: false,
    itemWidth: 210,
    itemMargin:5,
    asNavFor: '#slider'
  });

// Main slider
$('#slider').flexslider({
    animation: "slide",
    controlNav: false,
    animationLoop: false,
    slideshow: false,
    sync: "#carousel",
    itemWidth: 672,
    minItems: 1,
    maxItems: 1
  });
});

Anyone else experiencing this?

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

1 participant