jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
2k stars 737 forks source link

.jcarousel().css(width: "200%") - Suffix missing in style #819

Closed danielflippance closed 7 years ago

danielflippance commented 7 years ago

In 0.3.5, when setting the carousel (UL) width in JS, the unit suffix is not added to the element style. The following commands:

jcarousel.jcarousel().css("width", "200%");
jcarousel.jcarousel().css({width: "200%"});
jcarousel.jcarousel().css("width", "200px"});
jcarousel.jcarousel().css({width: "200px"});

all result in the following invalid style:

<ul ... style="width: 200">

Note the missing % / px