When editing a node, the zoom image overlays the edit screen (d7 with the seven theme as backend theme overlay). This is because of the z-index in the cloud-zoom.1.0.2.js:

<div id="wrap" style="top:0px;z-index:9999;position:relative;"></div>

I fixed this with adding an override declaration in a css-file:

div #wrap {
  z-index: auto !important;
}

Maybe this should be added as a css declaration in a module css file (not in the cloud-zoom css file for updating reasons).

Comments

mandreato’s picture

Subscribe

giorgosk’s picture

it would be nice to have this fixed

Brian MacKinney’s picture

Thanks for the fix - works as advertised. Second the request for the module to be updated.

Brian MacKinney’s picture

The css fix does move the image below the admin overlay, but the mouse still responds to the image instead of the admin menu.

mandreato’s picture

I found useful also the Image Zoom module.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new1003 bytes

Attached patch should resolve this. Note, it probably won't apply cleanly without first applying my patch from #1353892: Support Libraries API for more flexible library location

mrfelton’s picture

StatusFileSize
new1.18 KB

Revised patch - forgot to include the css file in the previous one!

stan turyn’s picture

subscribe

c50’s picture

If you add the mousetrap class in your css override, this works also to avoid the cursor over the overlay:

div #wrap {z-index: auto !important;}
#wrap div.mousetrap  {z-index:100 !important;}
ailgm’s picture

I tried the patch and got this error message:
Notice: Undefined variable: small in theme_cloud_zoom_image() (line 471 of .../sites/all/modules/cloud_zoom/cloud_zoom.module).
That line is:
$output .= l($small, $zoomed, array('html' => TRUE, 'attributes' => array('class' => 'cloud-zoom')));

I had already applied the patch in https://drupal.org/node/1579380, which takes out the line defining $small, so these two patches conflict with each other.

ailgm’s picture

Changing $small to $slide seems to do the trick.

nicholasthompson’s picture

I believe this is fixed in the dev branch as part of the patch in #15 in #1579380: Add support for All cloud zoom settings, and Gallery mode....

$ cat css/cloud_zoom.css
/* Display image bellow Drupal overlay.*/
.cloud-zoom-container #wrap {
  z-index: 499 !important;
}

Fixed in commit 9c1e7860c12ecd46af8b33affe3ea9f9ad8ff314 -- Part of the patch from #1579380 + integration with D7 core library API.

EDIT: Can this fix be tested please!

nicholasthompson’s picture

Issue summary: View changes

fixed wrong theme from stark to seven

gonssal’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

This is fixed.