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

The Archive Base Latest Questions

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

I have a jQuery dialog defined as follows <div id=emaildialog title=Contact Us> <!– Html.RenderPartial(ContactUs);

  • 0

I have a jQuery dialog defined as follows

<div id="emaildialog" title="Contact Us">
    <!-- Html.RenderPartial("ContactUs"); -->
    <div>This is a test</div>
</div>


<script type="text/javascript">
    (function ($) {
        // increase the default animation speed to exaggerate the effect
        $.fx.speeds._default = 1000;
        $(function() {
            $( "#emaildialog" ).dialog({
                autoOpen: false,
                show: "blind",
                hide: "explode",
                width: 700,
                modal: true,
                position: 'center'
            });

            $( "#viewselected" ).click(function() {
                $( "#emaildialog" ).dialog( "open" );
                return false;
            });
        });                
    })(jQuery);
</script>

When I click on the button that causes the dialog to show up, the dialog is centered in the middle of the screen, but it span the entire height of the we page. Specifically, the title bar itself stretches and the content at the bottom of the dialog seems fine.

Does anyone know what might be causing this and how to fix it?

I noticed one odd thing. If I click on the side of the dialog to resize the dialog, then it redraws itself properly, and upon inspecting the css I noticed that the dialog has it’s position changed from relative to absolute, but this is all done inside jQuery UI, so I’m not sure how to fix this in my code.

The css I’m using is linked from google:

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/
    1.7.2/themes/start/jquery-ui.css" type="text/css" rel="Stylesheet" />

You can see the site here for the css: http://dev.thinkterrabella.com/

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

    You dont need to specify the dialog width. If you remove it form the dialog setup function when the dialog will open it will size according to it’s content and if bigger than the viewport it will have scrollbars.

    as you’re returning a partial view it’s better not to specify it’s size and let him choose the right one.

    hope it helps!

    Issue:

    Why are you using jQueryUI 1.8.5 together with a theme from 1.7.2??? maybe something in the css is breaking your site. I advice you to change theme css pointing to the 1.8.5 release here: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/start/jquery-ui.css

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

Sidebar

Related Questions

Say I have jquery code like this: html += '<div class=index>' + item.index +
We have this JQuery code: $('#dialog-message').attr(title, t); It works fine the first time it's
I have created a dialog with the JQuery dialog plugin. My dialog is defined
I have a jQuery Dialog which initializes hotkeys as follows: <script type=text/javascript> $(document).bind('keydown', '<%=(i+1)%>',function
I have a problem with the jquery-ui dialog box . The problem is that
I am using SimpleModal in jQuery, and I have one confirm dialog. If the
I have an MVC view that contains a JQuery UI dialog that can be
I have the following ASPX page: <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server> <title></title> <script src=js/jquery-1.2.6.min.js
In have a controller class that handle a Contact object. In this controller I
I have jQuery UI dialog with ASP.NET. I wrap a list of check boxes

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.