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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With