removes superfluous call of setHeight