Fancybox (iframe) is unscrallable by update()
Hello Forum,
i have a problem and i hope someone can help me.
- $(".fBox").fancybox({ // Default fancybox-iframe
- hideOnContentClick : true,
- fitToView : false,
- padding : 2,
- maxHeight: '80%',
- beforeShow : function(){
- this.width = $('.fancybox-iframe').contents().find('body').width();
- this.height = $('.fancybox-iframe').contents().find('body').height();
- },
- onUpdate : function(){ $.fancybox.update(); } // make it unscrallable and jump always to top
- });
Ä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