How to display a pop-up window depending on its content at 100%?

I tried to use the 'height': '100%' option 'height': '100%' , but it showed only a window in full size of the browser window, the content that did not fit, was not displayed.

    1 answer 1

     $(".fancybox").fancybox({ fixed : false, autoCenter : true, fitToView : false //вот этот параметр вставить нужно }); 

    These parameters will make the window to the full height.