add setnoResize for enable and disable NoResize mode