动画jQuery UI对话框自动调整大小 [英] Animate jQuery UI dialog auto resize

查看:83
本文介绍了动画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.

这篇关于动画jQuery UI对话框自动调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆