Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #17739
Closed
Open
Issue created Sep 30, 2015 by Administrator@rootContributor

ScrollSpy no longer selects last element when at the bottom of the page

Created by: timfish

This was added in v2.0.3 but appears broken with v4-alpha and ScrollSpy attached to the <body>. The last item is not selected when you scroll to the bottom of the page.

var maxScroll = this._config.offset + scrollHeight - this._scrollElement.offsetHeight;

The issue appears to be that maxScroll is Nan because this._scrollElement.offsetHeight is undefined

this._scrollElement = element.tagName === 'BODY' ? window : element;

As I'm using the <body> element this._scrollElement is window

Assignee
Assign to
Time tracking