I recently added an Image Style to the "Link Image to" field in Views. I have several pages with multiple images in gallery format. When thumbnails are clicked, these images are opened in their original size using Shadowbox. The Image Style adds a watermark. In some instances on a page, the Shadowbox window opens to fit the image size; in others, it opens and covers the entire screen, not just the size required for the image being opened. When I disable the Image Style in the "Link Image to" field, the issue stops. In addition, I have tried multiple other Image Styles (scale, crop, etc) and they all cause issues, but again only on occasion. Further, if I disable the width/height animation, the issues stop as well.

Is there setting I am possibly missing to ensure Shadowbox is receiving the appropriate window size? In the generated code, its sets a width/height to 100%, so I am not sure how the image styles are affecting Shadowbox's ability to size the window appropriately.

Thanks in advance for the help. Example images are attached. Both image thumbnails appear on the same webpage.

CommentFileSizeAuthor
Screen Shot 2.png414.8 KBCrashNet
Screen Shot 1.png647.83 KBCrashNet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manfer’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

This is very unlikely a Shadowbox issue. I would need to view a site with the problem to check the issue.

It is more likely that you have messed up the shadowbox CSS with some of your own CSS or with the CSS of your theme. The Shadowbox div layer that is shown in the wrong example you provide is transparent (or otherwise the top menu will be hidden by shadowbox background) when actually in shadowbox it is black.

manfer’s picture

Issue summary: View changes

spelling error