I am trying to have multiple sticky headers under each other.
I currently have a navigation bar positioned to stick to the top of the page. If a component has its own additional navigation for this particular component (e.g. edit, export), I would like it to stick to the top, but beneath the app navigation.
I tried an approach similar to How can I make multiple on scroll fixed headers/navbars that stick at the very top of the page?, but it did not work out.
Here's a schema of what the structure is like (ignore the margin/padding between the boxes - they are just there to clarify the component structure).
Is it possible to stick the "Component-specific navigation bar" right beneath the "App-specific navigation bar" once the "Component frame" contains a component, which does have such an additional navigation bar at all? Would I need to calculate the height of the "App-specific navigation bar" using JavaScript?
Ultimately I'd need this in React, but if I understood how it can be done, I probably could implement it myself.