Blazorise Version
2.2.0
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
@* MainLayout.razor *@
<Layout>
<LayoutSider>
<Splitter>
<SplitterSection>
<!-- Navbar / SideMenu content -->
<NavMenu />
</SplitterSection>
<SplitterSection>
<!-- Main content -->
@Body
</SplitterSection>
</Splitter>
</LayoutSider>
</Layout>
Steps to reproduce & bug description
When using the Splitter component to resize a sidebar / navbar placed in the MainLayout, the page does visible layout jumps on the initial load.
The sidebar (NavMenu) and the main content area move horizontally a few times before the layout stabilizes. It looks like the Splitter is adjusting its size after the first render, which causes re-renders and layout shifts.
Steps to reproduce the behavior:
- Create a
MainLayout.razor with a side menu (navbar) and a main content area.
- Put a
Splitter so that the first section contains the sidebar / navbar (NavMenu) and the second section contains the main page content (@Body).
- Run the app and navigate to any page that uses this layout.
- Observe the page while it loads: the layout jumps / shifts horizontally before it stabilizes.
What is expected?
The layout should render at the correct sizes on the first paint, without visible layout jumps or flickering.
The Splitter should not cause extra re-renders that move the sidebar and main content during page load.
What browsers do you see the problem on?
Chrome, Microsoft Edge, Firefox
Any additional comments?
- The Splitter is used specifically so the user can resize the expanded navbar / sidebar area.
- The problem happens consistently on every page load where this layout with the Splitter is used.
- There is no custom CSS that changes the Splitter size directly.
- The jumps feel like they are caused by the Splitter computing its final size after the initial render (likely via JS interop) and then updating the DOM, which moves the layout.
You can see a demo here on this repository:
-https://github.com/Leandro-i2S/blazorizeSplitterDemonstration/tree/main
Blazorise Version
2.2.0
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
Steps to reproduce & bug description
When using the
Splittercomponent to resize a sidebar / navbar placed in theMainLayout, the page does visible layout jumps on the initial load.The sidebar (NavMenu) and the main content area move horizontally a few times before the layout stabilizes. It looks like the Splitter is adjusting its size after the first render, which causes re-renders and layout shifts.
Steps to reproduce the behavior:
MainLayout.razorwith a side menu (navbar) and a main content area.Splitterso that the first section contains the sidebar / navbar (NavMenu) and the second section contains the main page content (@Body).What is expected?
The layout should render at the correct sizes on the first paint, without visible layout jumps or flickering.
The Splitter should not cause extra re-renders that move the sidebar and main content during page load.
What browsers do you see the problem on?
Chrome, Microsoft Edge, Firefox
Any additional comments?
You can see a demo here on this repository:
-https://github.com/Leandro-i2S/blazorizeSplitterDemonstration/tree/main