tokens: Maybe simply always make the content view size the minimum of the size of its events and the current scroll position + X ( the X giving the user some distance to scroll before you have to resize again ) .
ner_tags: O O O O O O O O O O O O O O O O O O O O O O B-Variable O O B-Variable O O O O O O O O O O O O O O O