I’ve learned that I really like the Expand widget in the ArcGIS API for JavaScript 4.X. When I simply add a single widget (like BasemapGallery or Legend) to an Expand, a vertical scrollbar will appear if the content of the expanded pane is longer than the bottom of the screen. This is great, it’s what I want. It happens often enough, like when I’m demoing a web map in a meeting room with a projector.
However, when I make up custom content to put in an Expand, the vertical scrollbar doesn’t appear. The content I’m making is a div with HTML (text, input buttons, etc). I’ve tried creating a class to assign to the div, with the settings of overflow:hidden; overflow-y:auto; but this hasn’t worked.