Shadowbox 3 bugs and feature requests

1 message Options
Embed this post
Permalink
Ambient.Impact

Shadowbox 3 bugs and feature requests

Reply Threaded More More options
Print post
Permalink
(This post was updated on )
Hey there. I have to say, Shadowbox is one of the best viewers I've come across in the last couple of years. While implementing it on a site I'm working on, I've come across a few bugs. Also noticed a few things that would come in handy, if they added to Shadowbox.

Bugs:
* According the options page, all callbacks should be passed a single argument (current gallery element), but after testing this and looking at the Shadowbox code, it seems only onOpen provides this - onChange, onFinish, and onClose are called without any arguments.

* There's a strange bug with the initial viewer size in Opera (tested in 9.27, 9.64, and 10.0) involving images (and probably any other content) that need to be sized down to the viewport size - try one of the main page large image demos. In Opera, it seems as though the height of the title isn't taken in account somehow and the entire viewer is pushed down with the reveal animation, so the nav bar on the bottom is hidden. Oddly enough, this problem only happens when the viewer opens, not when it changes to a new gallery element.
EDIT: It seems this bug has already been reported elsewhere, but not fixed.

Feature requests:
* Was wondering if you'd be interested in looking into a way to change the handleOversize option on the fly, while Shadowbox was open. I prefer to set all my images to 'resize', but I have to resort to a hacky method of creating a parallel gallery with 'drag' if I want to allow full size viewing, with a link that closes the current Shadowbox and overlay and re-invokes it with the second gallery. I would love a way to check for the current mode and a method that changes it. Something like getHandleOversize() and setHandleOversize(mode). EDIT: Seems I'm not the only one that's had a similar idea, although I'd prefer something more programatic, that I can control myself.