I am currently developing a React application, and the code structure is set up as follows:
<Div>
<Div style={{maxHeight:'60vh'}}>
//This section includes the code for displaying a list item. Each item has its context menu that can be activated by clicking on an icon.
</Div>
<Div style={{maxHeight:'40vh'}}></Div>
</Div>
The Div elements have been assigned a maximum height. However, when a user clicks on the icon to trigger the context menu, it is being displayed within the scrollbar. I would like the context menu to appear at the top of the screen, taking up the entire div for optimal display instead of rendering inside the first div itself.
The context menu component is currently located within the first div.
Are there any CSS or alternative solutions to address this issue?
Current Behavior:
https://i.sstatic.net/EZB1E.png
Expected Behavior: https://i.sstatic.net/l46jJ.png