WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
16907
Lightbox-based Image Gallery Breaks
https://bugs.webkit.org/show_bug.cgi?id=16907
Summary
Lightbox-based Image Gallery Breaks
Sean McMains
Reported
2008-01-17 08:44:17 PST
We have an image gallery based on the Lightbox Javascript that worked beautifully under Safari 2.x, and works correctly with IE and Firefox. Safari 3.x, however, appears to use the width of the first image displayed for all subsequent images, regardless of their actual size. To reproduce: 1. Go to
http://www.theatreanddance.txstate.edu/productions/past/0607/markham.html
2. Click one of the production photos with a wide aspect ratio 3. Use the Next and Previous links to see a photo with a tall aspect ratio Expected behavior: The image should be displayed at its actual size Actual behavior: The image is scaled to match the width of the first image.
Attachments
Gallery Image in Safari
(206.27 KB, image/jpeg)
2008-01-17 08:45 PST
,
Sean McMains
no flags
Details
Gallery Image in Firefox
(226.27 KB, image/jpeg)
2008-01-17 08:48 PST
,
Sean McMains
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Sean McMains
Comment 1
2008-01-17 08:45:49 PST
Created
attachment 18502
[details]
Gallery Image in Safari Here's what it looks like in Safari
Sean McMains
Comment 2
2008-01-17 08:48:19 PST
Created
attachment 18503
[details]
Gallery Image in Firefox Here's the correct rendering. It works fine in Firefox, Safari 2, and IE.
David Kilzer (:ddkilzer)
Comment 3
2008-01-19 10:57:24 PST
I'm seeing the bad behavior on Safari 2.0.4 (419.3) with original WebKit on Mac OS X 10.4.11 (8S165). Which version of Safari 2 and OS X are you using? The latest Lightbox Image Viewer (v2.03a) seems to work for me with a nightly WebKit build and Safari 3 with their local demo. Have you tried upgrading to see if that fixes the issue?
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
Sean McMains
Comment 4
2008-01-22 12:53:07 PST
That's bizarre. I know that things used to be working fine with Safari 2.0.x. Perhaps one of the updates to Prototype or Scriptaculous triggered the problem with Safari. (The versions Lightbox comes bundled with are woefully out of date now.) I'll do some experimentation and will update with the results. Thanks!
Sean McMains
Comment 5
2008-01-23 12:58:01 PST
Mea culpa. It looks like this was a problem with our code which was changed around the same time that Safari 3.0 was released, as older versions of our stuff work fine with Safari 3.0. We're working on tracking it down on our end now. Sorry for the false alarm!
Sean McMains
Comment 6
2008-01-23 13:37:00 PST
For future generations: This turns out to be an issue with the more recent versions of Prototype and Scriptaculous. A fix to the lightbox.js is posted here:
http://www.huddletogether.com/forum/comments.php?DiscussionID=1836&page=1#Comment_6626
David Kilzer (:ddkilzer)
Comment 7
2008-02-03 23:11:30 PST
Thanks for doing the research and reporting back, Sean!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug