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

  • Resolved danrademacher

    (@danrademacher)


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

    On this page: http://baynature.org/trail/briones-to-acalanes-ridge-top-hike/

    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", "http://embed.transitandtrails.org/embed/plan/location?arrive=true&lat=" + coordinates.latitude + "&lng=" + coordinates.longitude).
          attr("class", "fancybox iframe {width:380,height:540}");
    
        a.fancybox({
          hideOnContentClick:false,
          hideOnOverlayClick:false,
          autoScale:false
        }).trigger("click");

    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!

    http://wordpress.org/extend/plugins/easy-fancybox/

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

    On the following page: http://buchholzhockey.de/mannschaften/herren

    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.

    mrspabs

    (@mrspabs)

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

    jdev

    (@jdev)

    Just set the properties in the css + !important

    Plugin Author RavanH

    (@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.