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

I have created a dialog with the JQuery dialog plugin. My dialog is defined
For learning jQuery UI dialog, I have the code defined below. I need to
I have a jQuery Dialog which initializes hotkeys as follows: <script type=text/javascript> $(document).bind('keydown', '<%=(i+1)%>',function
I have a jQuery dialog form: $loading.dialog({ closeOnEscape: false, resizable: false, draggable: false, width:
I have a jQuery UI Dialog working great on my ASP.NET page: jQuery(function() {
I have a jQuery UI Dialog that gets displayed when specific elements are clicked.
I have a jquery modal dialog that displays a partial view. The partial view
I have the following Problem: I have already opened a JQuery dialog and I
I have a problem with the jquery-ui dialog box . The problem is that
I have a small form that contains a jQuery UI dialog to ask for

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.