Updates Row-Height-Cache invalidation mechanism

Fixes #2387

Ha! I used the same trick when sorting hierarchical comments.