AnsweredAssumed Answered

Vertical Scrollbars in Expand

Question asked by zaloudek on Feb 13, 2018
Latest reply on Feb 14, 2018 by zaloudek

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.