I have a jQuery dialog form:
$loading.dialog({
closeOnEscape: false,
resizable: false,
draggable: false,
width: '650px',
height: '75',
modal: true
});
The above works. Below I adjust the height parameter from 75 to ’75px’.
$loading.dialog({
create: function () { $(".ui-dialog-titlebar").hide(); },
closeOnEscape: false,
resizable: false,
draggable: false,
width: '650px',
height: '75px',
modal: true
});
It doesn’t work anymore. I have a tiny form. How can we explain?
Thanks.
That’s because the height option is documented to take either a number or the string
"auto":As you can see, the
pxsuffix is not supported, so yourheightoption is ignored.