Added code to detect whether fullscreen functionality is available to use, from that to resize accordingly.