Search code examples
highslide

Reflow expander on resize or orientation change


I'm looking at hs.Expander.prototype.reflow, and what I would like to achieve is to have the expander reflow on resize or orientation change.

Not having much luck getting it to work, though. How can I achieve this?


Solution

  • The only known experiment in doing this is available here:

    http://highslide.com/studies/window-resize-2.html

    You're not going to like it. In short, it's simply closing and re-opening the expander to adapt to the changing viewport. It's jerky, distracting, and not really usable.

    (What I think you're discovering is that Highslide JS is probably the best image expander available, but it's virtually an orphan. Support is sketchy, and development has ceased. The script desperately needs some updating and rewriting. I've got a short list of things it really needs, both to address the video world and to address the mobile world, but I have little hope that any of those things will be addressed. It really is a pity.)