Popup does not work correctly with z-index in relative to aligned element.
I have a popup element that is aligned to a text box top right. we have logic that decides when to show and when to hide the popup.
textbox is contained within panel 1.
panel 1 is contained within panel 2
when scrolling panel 1 down , the top part of panel 1 slowly disappears as we scroll which is correct ,
The problem is that when we show the popup , it shows up at the location which is theoretically the top right of the text box even though this part is actually hidden because it is scrolled out of view.
I would expect the popup not to be visible if its aligned element top part is scrolled out of view.