Dialog width does not work in FireFox
I do not understand why the dialog will not work for width in Firefox (latest version) but will in IE (latest version):
dialogDiv.dialog
(
{
resi开发者_如何学运维zable: resizable,
width: width,
height: height,
bgiframe: true,
modal: true,
autoOpen: false,
show: 'blind'
}
)
No, it's not in a table..it's all tableless and I see it working fine in IE for width.
I was able to replicate the problem by puting the width and height in as a string rather and in integer in one of my ui dialogs so I would suggest checking that
Check 2 places:
- Must use integer value, not string, for width.
- Clear cached JavaScript file from Firefox and try it again. To clear, go to Options -- Advanced -- Network -- Cached Web Content -- Clear Now. If you do not want to clear your Firefox cache, rename your JavaScript file.
精彩评论