Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQueryUI Dialog display issue

I have the following code which builds a JQueryUI Dialog popup.

$j('<div></div>')
        .html(message)
        .dialog({
           autoOpen: true,
           bgiframe: true,
           buttons: { 'Dismiss': function() { $j(this).dialog('close') } },
           closeOnEscape: true,
           height: 'auto',
           modal: true,
           resizable: true,
           width: 400,
           title: 'An error has occurred'});

When the popup is first displayed to the user it looks like the image below, with a giant header. I know that no additional css classes are being added to the popup.

After I resize the JQuery popup the popup appears correctly. The header is immediately resized and displays properly.

Has anyone else ran into this before?

alt text

like image 377
Mike Fielden Avatar asked Jul 28 '10 18:07

Mike Fielden


1 Answers

I've never run into that problem before, but I would suggest two things:

If you want to fix the symptoms and not the issue, you could just do a style override:

.ui-widget-header { height: 100px }

You could also try removing your options one at a time to see if one of them is causing the issue.

like image 115
Will Avatar answered Sep 25 '22 21:09

Will