[jQuery] jcarousel lite each li have own height
currently the plugin is set-up so that it calculates the height
(offsetHeight) of the first li element and sets it as default height for the
ol/ul and other li elements in carousel.
each of my li is variable height and when i run the plugin it cuts of
content. i'm wondering if anyone has a fix for the this issue. i would like
each li to have height: auto, or to calculate the height of each li
separately.
my js skills are not ninja but I believe that i've identified the code in
question:
function css(el, prop) {
return parseInt($.css(el[0], prop)) // 0;
};
function height(el) {
return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
};
li.css({ width: li.width(), height: li.height() });
thanks in advance
--
View this message in context: http://www.nabble.com/jcarousel-lite-each-li-have-own-height-tp21245542s27240p21245542.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.