Closed (fixed)
Project:
Juicebox HTML5 Responsive Image Galleries
Version:
7.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2014 at 02:23 UTC
Updated:
13 Jun 2014 at 18:14 UTC
Jump to comment: Most recent
Comments
Comment #1
rjacobs commentedHi nsjski,
This is most likely related to the z-index settings (in CSS) for various divs within your theme and nice menu. The Juicebox javascript library uses a pretty high z-index (around 3000) for some of it's elements, and that's not something that this Drupal module has much control over. You could however reduce the z-index of the Juicebox gallery's parent element to something below that of nice menu, or increase the z-index of nice menu to something very high (say 9999). The way all this plays out can be a little tricky, and sort of depends on how various divs are nested within your layout, but a little hacking-around within your CSS may do the trick.
To lower the z-index of the Juicebox gallery's parent element (pulling everything inside it down in the stack order as well) you could try css like:
Depending on your layout that may or may not work, and you may instead have to try adjusting the z-index of whatever wrapper div nice menus uses.
Do you have a public link to the gallery? That's always useful.
Comment #2
nsjski commentedThanks, I'll give that a try. Also thanks for the quick response.
At the moment the gallery is here http://www.paccsa.org/photos/907 It's still in development so it might move.
Comment #3
nsjski commentedYou got it! This does the job:
ul.nice-menu, ul.nice-menu ul {
position: relative;
z-index: 10;
}
Thank you.
Comment #4
nsjski commentedSorry, I spoke too soon. My fix worked in the firebug CSS editor, but when I put the fix into my real CSS file it didn't do anything. :-(
Comment #5
rjacobs commentedIf you are using CSS aggregation (via the settings in admin/config/development/performance) then you'll need to clear your site's caches before the new CSS will get used. You may also need to do a full forced-refresh in your browser to clear it's caches as well.
Comment #6
nsjski commentedIt really is fixed this time!
I'm not sure what went on in firebug. Anyway, I just needed to set the z-index of the larger container divs, and did not need to touch juicebox CSS. I set the z-index of the menu's container div to be higher than that of the main content area's container div.
Google of nice menus and z-index led me to https://drupal.org/node/1054416 It seems that nice-menu drop-downs disappearing behind main content is a fairly common issue with javascript displays in the main content area.
Comment #7
rjacobs commentedGreat to hear. Can you share the specific CSS addition that you made? This could be a useful reference for anyone else using both these modules and finding this existing issue report.
Comment #8
rjacobs commentedI'm going to go ahead and mark this as fixed. nsjski, if you see this and are able to share that specific CSS, please feel free to do so even after it's closed. It may be a useful reference.
Comment #10
rjacobs commentedThere are some additional notes about this topic at #2277647: Superfish menus display over full screen mode. Those notes further explain how this module is involved in (or often not involved in) the layering of gallery elements on the page. That may also be useful for anyone encountering this kind of problem.