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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:48:11+00:00 2026-05-17T21:48:11+00:00

Using jQueryUI’s dialog boxes, I want to popup information. My problem is I want

  • 0

Using jQueryUI’s dialog boxes, I want to popup information. My problem is I want to set the height of the dialog to however high the content is. If I don’t specify a height, this works perfect. The height is automatically calculated based on the height of the content. Problem then is if the content is very tall, the dialog gets very tall too and goes below the window… maxHeight doesn’t work well in this case either.

So I’ve been able to somewhat resolve this by adjusting the height and position after displaying the popup. However, while the content is being loaded (through ajax), it goes well below the screen. It’s only after finishing that I can readjust the window. I’d rather not have that awkward delay.

UPDATE: Turns out I want something even more than just a maxHeight. I want a max INITIAL height. So after loading the dialog with data, it can only grow to a certain height. But after, you’re allowed to expand the window. It’s pretty easy to accomplish this:

$('<div><div></div></div>').attr('title', options.title).appendTo('body').dialog({
    open: function() {
        $(this).children().css('maxHeight', maxInitialHeight).load(url, function() {
            thisDialog.$dialog.dialog('option', 'position', 'center');
        });
    }
});

That will dynamically load a dialog from ‘url’ with content up to a maxInitialHeight height. The 2 divs nested are necessary.

  • 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-17T21:48:12+00:00Added an answer on May 17, 2026 at 9:48 pm

    You could insert your content inside a <div class="dialog-data" /> and make that div the content of your dialog.

    Then you could, with CSS, specify a max-height and overflow: auto to your div.dialog-data.

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

Sidebar

Related Questions

I am trying to create popup using the jqueryui dialog. I am trying to
Using jQueryUI. When users click on the delete_comment_button image, I want a dialog to
I'm using jQueryUI to create a dialog, I want the dialog object to be
im using jqueryui dialog but there's a problem upon loading it from other file.
I'm using jQueryUI Tabs inside a jQueryUI Dialog box. The content in each of
I'm creating a popup dialog using jQueryUI. I have run into problems because I'm
I'm actually using JQueryUI Dialog plugin to show some information to the users of
I am using jQueryUI to make a confirmation popup to save. I am writing
I'm trying to set an hover effect using jqueryUI's addClass() and removeClass(). This is
. Hello, I'm using jqueryui's datepicker, and it works great but there's a problem.

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.