Ready to get started?Download WordPress


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

  1. danrademacher
    Posted 1 year 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}");

    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!


  2. nasezoll
    Posted 12 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
    Posted 12 months ago #

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

  4. mrspabs
    Posted 11 months ago #

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

  5. jdev
    Posted 11 months ago #

    Just set the properties in the css + !important

  6. RavanH
    Plugin Author

    Posted 10 months ago #

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

  7. nasezoll
    Posted 10 months ago #

    Thanks a lot. Now it works again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic