refs #3813 fixed maximised widgets not closing on click outside