I know this is an old post, but thatβs how I dealt with the problem. It is applicable to version 1.0.1 of the carousellite.js code.
The problem is that the height for the container is set by the first element, and not by iterating all the elements to find the largest one. I adjusted the code as follows.
First add a new function to the script called max_height:
function max_height(el) {
Now find the line of code where the height of the list item is set:
li.css({ width: li.width(), height: li.height() });
Change it to the following:
li.css({ width: li.width(), height: max_height(li) });
This should solve the cropping problem. By the way, this will only work if you initialize the carousel in the window.load event, otherwise dom will not know how tall the container is.
source share