Document how to use the b-dropdown scrollable and boundary option for html elements
See original GitHub issueIs your feature request related to a problem? Please describe…
I’m using a b-dropdown inside a scrollable element and it doesn’t fit in the container. Per the documentation (https://bootstrap-vue.org/docs/components/dropdown#boundary-constraint) I need to set the boundary=“something”. Also, the dropdown is very large and needs to be scrollable.
I tried the boundary=“viewport” and “window” options and it just doesn’t constrain the dropdown or make it scrollable. I tried creating an absolutely-positioned div where the dropdown should appear, but I don’t think I’ve got the syntax right:
< b-dropdown boundary="#dropcontainer" > ...
<div id="dropcontainer"></div>
.drop-container {
position: absolute;
top: 100px;
left: 100px;
height: 100px;
width: 200px;
}
All it does is position the dropdown as if it is a dropup.
Describe the solution you’d like
Just add an example to the docs of a scrollable dropdown in a scrollable div…
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Dropdown | Components - BootstrapVue
Head to the Popper.js docs to see all the configuration options. Note: The props offset , boundary and no-flip may loose their effect...
Read more >How to show a dropdown menu outside a parent element with ...
The only solution I found online and made sense to me, is to wrap the container to div with relative positioning and make...
Read more >overscroll-behavior - CSS: Cascading Style Sheets | MDN
The overscroll-behavior CSS property sets what a browser does when reaching the boundary of a scrolling area.
Read more >Bootstrap Dropdowns - examples & tutorial
Responsive dropdown/caret built with Bootstrap 5. Examples of navbar dropdown, dropdown list, submenu, dropdown toggle, dropdown hover, hamburger icon ...
Read more >Dropdowns - Bootstrap
Wrap the dropdown's toggle (your button or link) and the dropdown menu within .dropdown , or another element that declares position: relative; ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are wanting the content of the menu to scroll, you will need to apply some custom CSS
If using scoped styles:
Alternatively you may also use: