-
Notifications
You must be signed in to change notification settings - Fork 737
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
Error when set start position #22
Comments
This is a common problem. The point is, that there is no width defined for the items and because of that, jcarousel isn't able to get the actual widths to do required calculations. The only solution right now is to explicitly define a width for the items. |
But it is strange, that it works if start = 1 or if a margin of items is set to non-zero value. |
I have explicitly defined width of the items using |
Try to add the following css:
You can consider this as a "bug". jCarousel sees an item as visible also if its only partially visible. I will add a patch to force an item being completely visible if its defined as the start item. |
This has been fixed in http://github.com/jsor/jcarousel/commit/9ff64d5ac2fc47f243a83a54815acb11d30c54f9 |
I'm gettig error "Error: jCarousel: No width/height set for items...", when I set start index > 1 (no problem for start = 1) in this example:
http:doubleslash albion.dev.intya dot cz/jcarousel-bug.html
(i.e. when it is impossible to scroll start item to the left margin of the carousel).
I expect that in this case carousel should scroll to the left as much as possible even if the start item would not be on the outermost left.
I also found out, that error magically disappears if i set margin to items. But for start=4, the item "Two" is on the start position and the item "Four" stays partially hidden.
Tested in FF 3.5.11
The text was updated successfully, but these errors were encountered: