Fix bug where annotations would grow when the window was resized
Try to fix a crash on resizing (bug 3136), which I suspect happened because the test for when an object in intervalTree has scrolled off the top was wrong