Fancybox (iframe) is unscrallable by update()

Fancybox (iframe) is unscrallable by update()

Hello Forum,

i have a problem and i hope someone can help me.

  1. $(".fBox").fancybox({ // Default fancybox-iframe
  2. hideOnContentClick : true,
  3. fitToView : false,
  4. padding : 2,
  5. maxHeight: '80%',
  6. beforeShow : function(){
  7. this.width = $('.fancybox-iframe').contents().find('body').width();
  8. this.height = $('.fancybox-iframe').contents().find('body').height();
  9. },
  10. onUpdate : function(){ $.fancybox.update();  } // make it unscrallable and jump always to top
  11. });
Ähm yes, that is my code, and work all fine but is unscrallable :(
As sample come a fancybox open by dimensions of 500px (width) and 100px(height) than have the content an show/hide-Button and the new hight is 300px, the box will automatically update, resize and update the new position (cente center).

Now i hope we can fix this unscrallable bug :(


Best  regards: Stefan