Active
Project:
Views Galleriffic
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2013 at 20:10 UTC
Updated:
10 May 2015 at 20:44 UTC
Jump to comment: Most recent
I LOVE Views Galleriffic and it's working out perfectly for me, but for one thing: in IE 10, the caption floats over the main image. In current versions of FF, Chrome and Opera, the caption is fine. It's probably a simple fix in the css, but I've been unable to figure it out. Any advice? The attachment shows the IE 10 issue.
Thanks in advance for any advice/feedback.
| Comment | File | Size | Author |
|---|---|---|---|
| caption-IE10.png | 382.3 KB | torvous |
Comments
Comment #1
GeorgeLangley commentedThe problem is that the inline style for the slideshow div is being set to zero, so the caption div bumps up right underneath, overtop of the picture. (The same gallery in Chrome reports a height of 394px.)
Can add a height in your custom CSS:
#gallery #slideshow{
height:400px !important;
}
but of course, that potentially wrecks any responsive design resizing, and assumes that all of your pics are the same size.
Comment #2
Maravizzo commentedActually in the generated code Firefox and the other browsers get the right height, while IE gets 0px.
I guess it is a problem in the script that generates the height.
Of course the solution by George cannot be used as it assumes the same height for all the images.
Something to do with lines 676 and 677 of jquery.galleriffic.js?
Comment #3
Maravizzo commentedA definitely not elegant solution that uses a CSS hack for Internet Explorer 10 and 11 is this:
Add this code in your theme css, it is read by IE only and solves the problem for me.
Comment #4
Maravizzo commentedIt seams that the above css works well in all the browsers, so we can remove the hack to have only explorer reading it.
Then the positioning of captions gets decided dynamically via css only, not by module code any more, but it works fine for me.
I think this solve the problem.