fancyapps/fancyBox — Issue #85: Reverting to default height upon window resize
Author: MeanwhileMedia
Created: 2012-01-03 22:11:15+00:00
State: open

I start out with:

```javascript
jQuery("#imgiframe").fancybox({
'width': 700,
'height': 220,
'padding': 0,
'scrolling': 'no',
'modal': true,
});
```

and while the user is interacting with the iframe, I manually resize the fancybox as so:

```javascript
jQuery('.fancybox-inner').css({
'width' : 750 + 'px',
'height' : 400 + 'px'
});
```

However, when the user resizes the browser window, the fancybox is reverted to the original sizing (700x220px). I tried setting 'autoSize' and 'fitToView' to false, but the problem still occurs. I assume this is because of the "dynamic" nature of the newest version of fancybox.

Could you change it so that it centers the fancybox according to the current dimensions, rather than the dimensions that were originally set? Or is there a better method for changing the fancybox size? (I am working with iframes)