fancyapps/fancyBox — Issue #162: No way to resize ajax loaded window's width?
Author: neokio
Created: 2012-02-24 05:15:37+00:00
State: open

I'm trying to get fancyBox and CKEditor to play nice together. Surprising how poorly documented this killer combo is!

By adding the CKEditor .js files to the parent page, and then the following code to the fancyBox'd ajax page ...

```javascript

```

... CKEditor operates reliably within fancyBox. However ... because CKEditor loads after fancyBox has determined the page size, I have to manually set the width of the textarea that CKEditor replaces, or CKEditor appears partially off-screen.

This isn't so bad, but in trying to fix this, I could find no way to resize the width of the window! I tried setting fancyBox's `autoSize` option to true, hoping the CKEditor resizing even would auto-trigger a resize, but no effect. I tried `$.fancybox.update()`, but the problem is the width, not the height.

Is there a way to adjust the fancyBox's width after it has loaded?