Open LostBeard opened 5 days ago
The problem is actually in RadzenBody:
@media (max-width: 768px) {
body:has( > .rz-layout) {
overflow-x: hidden;
}
.rz-header, .rz-footer, .rz-body {
width: 100vw; // <- always
}
}
Try <RadzenBody style="width: auto">
. Probably we need a more specific CSS rule which accounts for sidebars cc @yordanov
Try
<RadzenBody style="width: auto">
.
Excellent. The right sidebar works as expected after adding that. Thank you for such an amazingly quick and helpful reply.
Your recommendation solves the issue for me. You may close this issue at your discretion.
Describe the bug There are 2 issues with right sidebar. Both issues show themselves when the window width is reduced. (window.innerWidth < 769px on my PC)
Responsive="false"
attribute and still auto-hides when window width is reduced.Expanded
boolean value is set to true when window width is reduced. (This occurs even if theResponsive
attribute is not set.)To Reproduce Steps to reproduce the behavior:
Responsive="false"
is set.The demo is a clean .Net 8 "Blazor WebAssembly Standalone App" with the following changes:
<script>
and<link>
tags toindex.html
as described in Getting StartedMainLayout.razor
contents with Right Sidebar ExampleResponsive="false"
toRadzenSidebar
inMainLayout.razor
(Only needed to demonstrate that it ignores this attribute. Other issue occurs regardless of this attribute.)Demo repo: RadzenRightSidebarBug
Expected behavior I expected the
Responsive="false"
attribute disable auto-hiding of the right sidebar on smaller screens like it does with the left sidebar, as described in the documentation.I also expected the right sidebar to show when the Expanded parameter value is set to true even when on smaller screens.
Screenshots [NONE]
Desktop (please complete the following information):