Fix new visual block rendering to handle horizontal scroll