ryrych / rcarousel

yet another jQuery UI carousel
http://ryrych.github.com/rcarousel/
172 stars 48 forks source link

'getTotalPages' returns 2 if the number of items = the visible number #34

Closed KingErroneous closed 12 years ago

KingErroneous commented 12 years ago

I am disabling and enabling my navigation buttons based on where we are in the pages, however, if there are 6 items in a carousel with visible = 6, getTotalPages is 2, so the next button shows up.

ryrych commented 12 years ago

Thanks for your report. Unfortunately, I don’t have time to hack on it now. But you can always work around this, just liked you said: if getTotalPages returns 2, you can assume it is 1. I don’t remember now, but 2 should be the lowest number ever. That’s how the internal code work.

KingErroneous commented 12 years ago

I was able to work around it. Thanks...

-----Original Message----- From: Wojciech Ryrych [mailto:reply@reply.github.com] Sent: Friday, April 27, 2012 12:27 PM To: KingErroneous Subject: Re: [rcarousel] 'getTotalPages' returns 2 if the number of items = the visible number (#34)

Thanks for your report. Unfortunately, I don’t have time to hack on it now. But you can always work around this, just liked you said: if getTotalPages returns 2, you can assume it is 1. I don’t remember now, but 2 should be the lowest number ever. That’s how the internal code work.


Reply to this email directly or view it on GitHub: https://github.com/ryrych/rcarousel/issues/34#issuecomment-5388588