handle fullscreen mode in pdfng

default to scale = 1 when containing div size is zero