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

  • Home
  • SEARCH
  • 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 6809129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:02:56+00:00 2026-05-26T20:02:56+00:00

When I attempt to render a <table> as a dialog window, my height:750 parameter

  • 0

When I attempt to render a <table> as a dialog window, my height:750 parameter seems to be ignored; the content, over 2100px in height, forces the dialog to render at the same height, making the whole page scroll: (example)

Also, here is a $("table").dialog() call where the table is shorter than the parameter. In this example, the dialog shrinks in height to match the table cell contents, again ignoring the 750 height parameter. (example)

Workarounds:

Rendering tables inside a <div> tag seems to eliminate this issue, but feels rather kludgy:

Short table + Tall text wrapped in div

Long table wrapped in div

Also, here is my workaround where I render an empty dialog and then pull the table into the window as part of the open() callback:

After-render workaround

Is this behavioral inconsistency a bug or is this by design?

  • 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-26T20:02:57+00:00Added an answer on May 26, 2026 at 8:02 pm

    It doesn’t seem like opening a table dialog without regard to the height option during initialization would be by design. My experience has been that jQuery UI components behave most consistently wrapped as <div> elements and it looks like you found the same result but as you said, that shouldn’t be a requirement.

    The default value for the height option on dialog() is auto, which should scale the dialog to fit the element. It’s possible there is a bug when a table element is passed to dialog() causing auto to override the height options at init. I tried changing the width value in your first example and dialog() does respond correctly by changing the width but height does not budge. I also reordered the options so height was first but that also did not have an effect.

    JS Bin doesn’t work well for me so I moved your code to this fiddle and condensed the dialog init call. https://jsfiddle.net/z601hhjd/

    // Open dialog and set height and width on init
    // Width option works at initialization but height does not
    $(".shortTable").dialog({
         'height':'300',
         'width':'500',
         open: function(event, ui) {
             // Height setter has no effect after init either
             $(this).dialog("option", "height", 200 );
    
             // Width setter works after initialization too
             $(this).dialog("option", "width", 200 );
         }
    });
    

    It looks like there is a bug in jQuery UI for setting the height on table elements which conflicts with the documentation but this functionality is consistent with the HTML specs as @Peri said.

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

Sidebar

Related Questions

In an attempt to add some parameter validation and correct usage semantics to our
I have a console application from which I create a window. I can render
I have a radio button control adaptor that attempts to render the radio button
First attempt to use this cool site - after searching for 2 hours: So
If I attempt to connect to Mac OS X 10.5 Leopard's built in vnc
When you attempt to declare an unsigned variable in C#.NET with a value outside
I've decided to attempt using the double submitted cookies technique to attempt to prevent
Has there been any attempt and creating a formalized method for organizing CSS code?
This is an attempt to rephrase a question I asked earlier. I'd like to
When I attempt to use the iterator form of parsing for a Spirit grammar

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.