I have a MainLayout
like this:
<RadzenLayout>
<MyCustomHeader />
<MyCustomSidebar />
<RadzenBody class="rz-p-1 rz-pt-3">
@Body
</RadzenBody>
</RadzenLayout>
<RadzenDialog />
<RadzenNotification />
<RadzenContextMenu />
<RadzenTooltip />
If I enable interactivity in the MyCustomHeader
like this:
@attribute [RenderModeInteractiveAuto]
<RadzenHeader>
</RadzenHeader>
as soon as the interactivity is initialized, the body content jumps up by the height of the header, and behind the header:
If I remove @attribute [RenderModeInteractiveAuto]
this doesn't happen, however interactivity is needed to make the header interact with the sidebar.
Unfortunately, I cannot share my whole project as it is company code.
Followup
I noticed that turning on interactivity adds the fixed
class to the RadzenHeader
which causes this behavior.