Added the setSize and setPosition functions.  Activated on max and unmax events