add setHeight snippet