handle setHeight same as setWidth