The sensor of claim 1, wherein the pinned layer is a first part of a pinning structure, the pinning structure including a second part that is made of hard magnetic material that extends at least twice as far as the pinned layer extends in a stripe-height direction that is perpendicular to the track-width direction.