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 6649327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:45:38+00:00 2026-05-26T00:45:38+00:00

Sorry if you think I didn’t show you the code because I haven’t implement

  • 0

Sorry if you think I didn’t show you the code because I haven’t implement yet.

I am trying to built a jQuery photo view plugin, but normally when I find some examples on line, the height of the modal window is either the window height which is the height of your computer screen of the document height which is the height of the html body.

When I saw the facebook photo view plugin, the height of the modal window can be extended according to its content height, anyone could tell me how to do that, if you could show me a bit of coding related or some examples would be great, thank you for your great help.

  • 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-26T00:45:39+00:00Added an answer on May 26, 2026 at 12:45 am

    Facebook does something really interesting with their modals. They have the page wrapped in a container, and the modal is added to the DOM as a sibling, rather than a child of the container. So, they set the container to position:fixed instead of the modal. This allows the user to scroll as they normally would if the modal grows past the constraints of their window size.

    If you intend to follow the same strategy, the modal will naturally grow as its content does, since your modal doesn’t have to be postion:absolute.

    Otherwise, this can of course be done with the traditional approach of making the modal position:absolute or position:fixed, but it is a little trickier.

    If you have control over the code that is changing the content in the modal, I would evaluate the size of the content and resize/reposition the modal to compensate.

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

Sidebar

Related Questions

Note: Sorry for the amount of pseudo code below, but I didn't know how
Sorry for the long title, didn't want people just reading the title and not
I know that title didn't make sense, Im sorry! Its hard to word what
[ Update: Changed question title to be more specific] Sorry if I didn't make
I've looked but didn't find previous questions specific enough, so sorry if this is
sorry for this question, but I searched it and I didn't find an answer
Update Sorry. I didn't mean the whole reflection library was off limits. I just
Sorry guys, it seems like I didn't explain my question clearly. Please allow me
I'm sorry if that question was already discussed, but I didn't find exactely what
Update* I am so sorry... my sample code contained an error which resulted in

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.