Fix 1px artifact when panel is in toolbar mode.