Changed setSize system, it now works the same as the rotation system.