Easy FancyBox
[resolved] inline content overflows the fancy box (3 posts)

  1. baignoire
    Posted 3 years ago #

    hi there,
    first thanks for this neat plugin ! :)

    i am using fancy box to display dynamic inline content : http://rafonthenet.net/lfa/recrutements/ and my problem is that the text overlaps the box on the right side (tested on firefox and chromium on ubuntu) : http://rafonthenet.net/lfa/wp-content/uploads/2012/11/Capture-du-2012-11-14-142819.png
    I tried with fixed width in 'fancybox_ID' div but it didn't solve it : text still goes too far right before carriage return...

    i kind of fixed (turned around..) the problem by setting a fix width to a content div inside the 'fancybox' div itself (see it on the "GĂ©rer les fichiers" link at http://rafonthenet.net/lfa/espace-parents-et-eleves/liste-des-manuels-scolaires/ ) but i'm not very happy with this turnaround...

    do you think the box can be width-adaptative to content when no width is specified, but still prevent text from overflowing ???



  2. RavanH
    Plugin Author

    Posted 3 years ago #

    No, FancyBox needs to know the size 'in advance' otherwise it will revert to the default or fixed size.

    It can detect the size of an image but for inline content, you need to give the inline div actual size parameters. Like
    width="..." height="..."

  3. baignoire
    Posted 3 years ago #

    ok, thanks for answering as well as for the plugin :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.