Floatbox: The premier windowing system for web pages

Forum guidelines:

- Please read the docs first.

- The forum's search function can be very helpful.

- Give an online example of problems if you can.

- Try to behave.

Support & General Discussion » image groups with index links drop first image after viewing

image groups with index links drop first image after viewing

Page: 1

Author Post
Member
Registered: Jul 2010
Posts: 2
Thanks for a great library. Apologies if this has been asked and answered.

I'm having trouble when using image groups with index links. The first image in the group appears to drop from the group after you initiate and close the floatbox.

You can see the behavior demonstrated on the Floatbox demo page . Initially there are 5 images grouped when you click the "Include Index Links" link. When you click the same link again the count of total images drops to 4. The first image appears to be dropped from the group list...at least for me ;)

I tried changing the rev attribute value numIndexLinks to the actual number of images in the group. No joy, the first image was still dropped. I thank you for any guidance on working around this behavior.
« Last edit by snapper on Fri Jul 02, 2010 6:43 pm. »
Administrator
Registered: Aug 2008
Posts: 1522
This is a known bug in floatbox 4.0+ that is fixed in the next release (4.05) which should be out in just a few days.

There is a workaround. On the anchor that has the showThis:false option set, add a callback to re-inventory the page when the floatbox closes - like this:
afterBoxEnd:`fb.anchors.length = 0; fb.activateElements();`


This can be tested on the demo page by running "javascript:(fb.anchors.length = 0) || fb.activateElements()" from the browser address bar.
« Last edit by admin on Fri Jul 02, 2010 9:42 pm. »
Member
Registered: Jul 2010
Posts: 2
Many thanks for the fast reply. Your work around did the trick.

Page: 1

Support & General Discussion » image groups with index links drop first image after viewing

Floatbox Forum is powered by UseBB 1 Forum Software