WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] iframe class ignoring height/width params since upgrade (7 posts)

  1. danrademacher
    Member
    Posted 9 months ago #

    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/

  2. nasezoll
    Member
    Posted 9 months ago #

    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.

  3. jdev
    Member
    Posted 9 months ago #

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

  4. mrspabs
    Member
    Posted 8 months ago #

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

  5. jdev
    Member
    Posted 8 months ago #

    Just set the properties in the css + !important

  6. RavanH
    Member
    Plugin Author

    Posted 7 months ago #

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

  7. nasezoll
    Member
    Posted 7 months ago #

    Thanks a lot. Now it works again.

Reply

You must log in to post.

About this Plugin

About this Topic