Fancybox runtime height change
20 Nov 2009For those who use fancy box and iframe inside fancy box might face the issue of changing the height. Once fancybox is loaded with a particular height and width, it does not change when you change the content inside iframe dynamically. Auto height change is only possible for images.
Use the below code to change the dimensions of an iframe in runtime.
<script type=”text/javascript”>
parent.$(“#fancy_outer”).width(100); parent.$(“#fancy_outer”).height(120);
</script>
Cheers
Sajith
Tags: autoheight, fancybox, iframe, Javascript, runtime, script

