Absolute position problem when scrolling

I'm having a problem with an abolute positioned element when scrolling, it moves and overflows the container: https://codepen.io/n00bCod3r/pen/XWQaZbz I tried adding a position relative to the container, but it gets cut:
4 Replies
SvenSplynter
SvenSplynter3mo ago
Make the container position: relative; and remove the overflow-y: auto;
MC23
MC233mo ago
The overflow must stay there unfortunately :c This is a simple example, but this piece of code is inside an Angular component that must overflow based on the dynamic height of a header component, that can be expanded
SvenSplynter
SvenSplynter3mo ago
Could you use visible instead of auto then?
MC23
MC233mo ago
I'll try in my component and see how it reacts That seems to work, even if the scrollbar upper part gets hidden it's still functional Marking this as solved, cheers