Put a pixels-wide buffer at the ends of the history tree; fixed assertion failures