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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:42:57+00:00 2026-05-11T13:42:57+00:00

I have a JQuery UI dialog popup that displays a form. By selecting certain

  • 0

I have a JQuery UI dialog popup that displays a form. By selecting certain options on the form new options will appear in the form causing it to grow taller. This can lead to a scenario where the main page has a scrollbar and the JQuery UI dialog has a scrollbar. This two-scrollbar scenario is unsightly and confusing for the user.

How can I make the JQuery UI dialog grow (and possibly shrink) to always fit its contents without showing a scrollbar? I would prefer that only a scrollbar on the main page is visible.

  • 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. 2026-05-11T13:42:58+00:00Added an answer on May 11, 2026 at 1:42 pm

    Update: As of jQuery UI 1.8, the working solution (as mentioned in the second comment) is to use:

    width: 'auto' 

    Use the autoResize:true option. I’ll illustrate:

      <div id='whatup'>     <div id='inside'>Hi there.</div>   </div>    <script>      $('#whatup').dialog(       'resize', 'auto'      );      $('#whatup').dialog();      setTimeout(function() {         $('#inside').append('Hello!<br>');         setTimeout(arguments.callee, 1000);       }, 1000);    </script> 

    Here’s a working example: http://jsbin.com/ubowa

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

Sidebar

Related Questions

I have a jquery modal dialog that displays a partial view. The partial view
I have a jquery dialog as follows - <div data-role=dialog id=msg-popup> <div data-role=header> <h1>Notification</h1>
I have a jQuery dialog that appears and loads an external page. In that
I have a jQuery dialog form: $loading.dialog({ closeOnEscape: false, resizable: false, draggable: false, width:
When creating or editing object sin my table, I have a jquery dialog that
I have a jQuery UI Dialog that gets displayed when specific elements are clicked.
I have a fairly basic dialog maker for jquery that works in 2 out
I'm having some trouble with IE6 and jQuery UI. I have a popup dialog
I have an asp.net usercontrol that contains a jQuery UI Dialog Control. All works
Good morning. I have a modal JQuery dialog that on Open calls and loads

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.