if (container.hasClass('hidden')) {
var containerWidth = container.outerWidth();
var totalWidth = 0;
var childrens = container.children();
var i = 0;
while (totalWidth < 300) {
totalWidth += childrens.eq(i).outerWidth(true);
i++;
}
}
Ответ написан
Комментировать
Комментировать
Оценили как «Нравится»
Войдите на сайт
Чтобы задать вопрос и получить на него квалифицированный ответ.