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
  • #37916
Closed
Open
Issue created Jan 19, 2023 by Elysiome@Elysiome2 of 2 checklist items completed2/2 checklist items

Make it optional to hide offcanvas when resizing the window

Prerequisites

  • I have searched for duplicate or closed feature requests
  • I have read the contributing guidelines

Proposal

Hi,

When the user resizes the window, all offcanvas that are not in the fixed position are hidden because of this piece of code: https://github.com/twbs/bootstrap/blob/bada2b9a90be728da0157a6f96e4de5364035f5f/js/src/offcanvas.js#L266-L272

So I suggest to make this behavior optional, for example by creating a hideOnWindowResizing option (true by default).

Motivation and context

In some cases we don't want to hide the offcanvas on window resizing, even when the positions are absolute. In some of UI I have created, this causes problems for my users. It would be very appreciated to implement an option such this one.

Assignee
Assign to
Time tracking