Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3356112
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:28:33+00:00 2026-05-18T02:28:33+00:00

I Use Fancybox to display complex forms on an intranet site. The page the

  • 0

I Use Fancybox to display complex forms on an intranet site. The page the Fancybox forms are launched from uses Datatables to filter filter and sort numerous records from the database. When the list is filtered significantly and the Fancybox is loaded, the Fancybox content can exceed the page body. This results in white area where the Fancybox overlay does not show.

In addition to being ugly, you cannot click in this area to close the Fancybox.

What is the best way to grow my page body to at least the height of the Fancybox, either with CSS, Javascript or both?

Thanks!

EDIT:
Gov’s solution below is correct but does not solve the problem. Actually the height of the Fancybox overlay itself needs to be increased. I’m perceiving this now to be a bug with Fancybox. It seems if the body grows as a result of of the Fancybox size, then the overlay should increase to the body size automatically. I will submit this to the developers. In the meantime if anyone has this issue Gov’s code as I have modified it will work:

// Adjust Fancybox Overlay Height to Large Fancyboxes
function overlayHeight() {
  fancyBoxHeight = $('#fancybox-wrap').height(); 
  finalheight = fancyBoxHeight + 300;
  $('#fancybox-overlay').css('height', finalheight);
}

I also want to note that Fancybox is a really great plugin, so this should not be taken to sway from anyone against using it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:28:34+00:00Added an answer on May 18, 2026 at 2:28 am

    Calculate the height of the fancy box , assume fancybox id is fancyboxid1

    fancyBoxHeight=$('#fancyboxid').height(); 
    
    // determine how much width you want//
    
    finalheight=fancyBoxHeight+300 or 400
    
     $('body').css('height', finalheight);
    

    You need to execute the above code , after you display the fancybox , then it sets the height as required.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to use fancybox to load a specifc div #id from another
I'd like to use the jQuery plugin Fancybox on my site - for the
I use fancybox to show a popup window from another url, using iframe. Here
first post - Hello! I use fancybox ( Fancybox homepage ) to display modal
I've got a site where I use fancybox. When the contents of the fancybox
I want to use fancybox from inside flash. I call a javascript function with
I'm trying to use fancybox to display 2 SWF videos. I have the issue
I have a picture gallery and I use fancybox to display pictures, and navigate
I am trying to use jQuery Fancybox to popup a youtube video from a
I use fancybox plugin on my website and I want to display an iframe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.