Support » Plugin: Easy FancyBox » iframe class ignoring height/width params since upgrade

  • Resolved danrademacher


    We use Easy Fancybox for a couple of iframe popups as well as the usual images and whatnot.

    On this page:

    The “Get Directions” button below the map has been working great for a while, but since the upgrade a week ago, it’s ignoring the size params we have in our code.

    That popup is created with this code:

    var a = jQuery("<a></a>").
          attr("href", "" + coordinates.latitude + "&lng=" + coordinates.longitude).
          attr("class", "fancybox iframe {width:380,height:540}");

    I tried changing the class to “fancybox-iframe” but that didn’t help. Did the implementation of size parameters change? I can’t seem to find any documentation to that effect.

    Thanks for any advice!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same problem.

    On the following page:

    When you click on “Verbandsergebnisdienst” the size of the upcoming iFrame depends on your window size. The width/height parameters are ignored.

    <a href="--url--" class="fancybox-iframe {width:830,height:500}">Verbandsergebnisdienst</a>

    Worked before update.

    Same problem here… A temporary fix is hardcoding the dimensions in the css using !important.

    jdev, can you tell us more about the workaround? i have this problem too

    Just set the properties in the css + !important

    Plugin Author RavanH


    Enable the option ‘Include the jQuery Metadata script…’ on Settings > Media in the Links section under FancyBox.



    Thanks a lot. Now it works again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘iframe class ignoring height/width params since upgrade’ is closed to new replies.