Keep blockly window on screen on resize