self.cursorheight = Math.min(self.view.h, Math.round(self.view.h * (self.view.h / self.page.h)));