BF: fix calculation of trailing span and visualIndexAt
Merge pull request #255 from nmichaud/feature-grid-header-bf

BF: fix calculation of trailing span and visualIndexAt