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
  • #15718
Closed
Open
Issue created Jan 31, 2015 by Administrator@rootContributor

Add support for modals with forced scrollbars (`overflow-y: scroll`)

Created by: pavelhoral

Scrollbar showing/hiding and the related "layout jumping" is usually percieved pretty negatively by users. This is less issue on static web pages, however with dynamic pages or single-page web applications (e.g. AngularJS based) it becames very uncomfortable and distracting.

To workaround this a standard solution is to force browsers to always show vertical scrollbar by setting overflow-y: scroll on <body> element. However this is incompatible with Bootstrap's modal dialog as it checks for scrollbar presence only by checking that the content height is bigger than the viewport.

I would like Bootstrap to support forced scrollbars (i.e. change the detection when the scrollbars are shown).

JS-Bin to demonstrate the current state of things: http://jsbin.com/johobubafa/1/

Assignee
Assign to
Time tracking