comment out console.logs in pdfng
poll the element for the pdf viewer if it is zero size

avoid invisible pdf forever waiting for layout-ready event when
switching between full-screen and split-screen