change getHeight to getInnerHeight