Any other way for an object to function like "Fix Position when Scrolling" inside an auto-layout frame?

Hello, I am just new to figma and have been having a difficulty with this certain set of objects. I created an expanding card-like button with auto-layout and the frame needs to adjust as well when it expands that’s why I made the master-frame have an auto-layout. But I also need to have my navigation bar on the top to have its position fixed whenever the user is scrolling. Any ideas on alternatives to make this work?