Resize fancybox with dynamic content
问题 I'm using fancybox and when the box load I need to insert some items into a unordered list (ul) inside the box. The problem is that when I insert the items the content is larger than the box itself so I need to resize the box when the content has been updated. I can't get it to work with $.fancybox.resize(). How can I resize the box when the new content has been added? jQuery: $("a#OpenPopup").fancybox({ 'onStart': function () { loadContent(); } }); function loadContent(type) { var items = "