I am going through a strange glitch within the Fancybox for WordPress wordpress plugin on Los del Patio's testing home page.

I am looking to get the featured image to become drawn right into a fancybox. The featured image is available like a hidden div that get's display:visible and fancyboxed. It really works except the wrapping div does not match the image's dimensions. I have even adopted the instructions to override by calling out an inline width and height for that container div that's hidden.

Here's the screenshot of what is happening:

screenshot of fancybox wrapping bug

Here's the code from the page-casa.phtml template:

    <aside class="galeria-preview" role="complementary">
        <h2><a class="fancybox" href="#galeria-img">Pr&oacute;ximo Exposici&oacute;n: <br/>
        <span class="verde"><?php echo get_post_meta($post->ID, 'galeria-proximo',true); ?></span></a></h2> 
        <div style="width:940px;height:400px;" id="galeria-img" class="hidden">
            <?php the_post_thumbnail( 'full' ); ?> 
        </div>
    </aside>

Thank you for any help peeps!

It is best to to visit directly without needing a wordpress plugin with this.

I'd a resizing problem like yours. I coded and looked a great deal for this and lastly gone to live in this pirobox which has autoresing and my problem solved...