动画jQuery UI对话框自动调整大小

问题描述:

我有一个对话框,里面有动态表单,可以增加对话框的高度. autoResize设置为true,width为500.添加更多内容后,是否有任何方法可以使对话框调整大小?

I have a dialog with a dynamic form inside that can increase the height of the dialog. autoResize is set to true, width is 500. Is there any way to animate the dialog resize when more content is added?

最初,我使用的是.show('fade'),每当调用.show时,对话框的大小就会跳转.使用效果.show('fast').show('slow')时,对话框以滑动方式调整大小,这对我有用.

Originally I was using .show('fade') and the size of the dialog would jump whenever .show was called. When using the effect .show('fast') or .show('slow'), the dialog is resized in a sliding fashion which works for me.