I recently implemented Greybox Redux on a soon-to-launch site. Using it for a screenshot page, I scrolled down about half-way and clicked an image. No greybox... Rather, it was at the top of my page requiring me to scroll up.

Some Google searching later I found a solution at http://jquery.com/blog/2006/02/10/greybox-redux/. Credit goes to Tom Zellman (http://www.feednut.com/). He replaces the GB_position function and adds another Javascript function call after $(window).resize(GB_position);.

I have attached greybox.js (v1.2) from the Greybox Redux module which includes Tom's new code. As far as I can tell it works fine under Drupal 5.1.

CommentFileSizeAuthor
greybox.js_.txt2.14 KBrubicon-1

Comments

inforeto’s picture

Thanks. I tried the file and worked instantly.
The extra code looks good and worked on firefox 1.5.0.9, opera 9.02 and ie6.

Gurpartap Singh’s picture

Status: Needs review » Fixed

Thanks! Committed to DRUPAL-5 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)