Extract adjust-viewport-to-contain-cursor
Replace viewport-offset with viewport-top
Replace viewport-size with viewport-height