akzhan/jwysiwyg — Issue #292: Fancybox Usage Scrolling Bug
Author: niftylettuce
Created: 2012-03-09 00:49:18+00:00
State: open

If I have an element, e.g.

```html

Some Header

Some content

```

And I try to load it into a `$.fancybox()` instance and when using `onComplete`, the page scrolls to the `textarea` iframe created:

```js
$(function() {
content: $("myElement").clone(),
onComplete: function() {
$("myTextarea").wysiwyg(); // this causes the page to scroll down to the top of the textarea iframe
}
});
```

This is an undesired effect which requires one to add JS to scroll the page back up, as `$.fancybox.center()` does not fix this.