Add the getMaxLines function to return the maximum number of lines it is alowed to compactHistoryScroll.