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

This not work in Jquery 3.1.1 #21

Open
ghost opened this issue Mar 17, 2017 · 1 comment
Open

This not work in Jquery 3.1.1 #21

ghost opened this issue Mar 17, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 17, 2017

No description provided.

@earthexceed
Copy link

Change function calculateWidth() in line 161 to below

this.calculateWidth = function()
{
var width = 0;
for (var i = 0; i < $container.find("li").length; i++)
{
var getWidthA = $container.find("li").eq(i).children("a").eq(0).outerWidth()
if (typeof getWidthA != 'undefined') {
width += getWidthA
}
var getWidthSpan = $container.find("li").eq(i).children("span").eq(0).outerWidth()
if (typeof getWidthSpan != 'undefined') {
width += getWidthSpan
}
}
return width;
}

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