Changed this.element.getHeight to this.getHeight