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
  • #33555
Closed
Open
Issue created Apr 05, 2021 by Administrator@rootContributor

offcanvas: don't allow scrolling the page if the viewport is blocked (mobile)

Created by: korki43

You shouldn't be able to scroll on the page if your entire viewport is blocked by an offcanvas with scroll=true. This happens on a lot of mobile devices.

Example: Go to the offcanvas docs, on a mobile phone, in reponsive design mode or with an extremly thin window and open a scrollable offcanvas. You will be able to scroll the page while you're only seeing the offcanvas. If you close the offcanvas you'll be on a different point on the page. If the offcanvas itself is also scrollable the scrollbars are even weirder (example).

This can probably be fixed by checking if the width of offcanvas equals the window width before enabling scrolling.

Assignee
Assign to
Time tracking