I've got a sidebar that is displayed when a user does an operation in my app that opens up with a pdf inside it (PDF control is within another control). The sidebar just targets the body (no target specified), however it doesn't matter what I set the width property, the sidebar always just displays at the default size.
If I inspect the page once the sidebar is open, I can see the style is set to the width specified, however the sidebar still just shows as the normal default width. Any ideas how I can troubleshoot this so I can get to the bottom of it?
Also, any possibility that the sidebar width can be set as a percentage of the page width rather than a static px value?
Sidebar code:
<SfSidebar ID="ReportSlider"
@ref="SidebarObj"
Width="800px"
Position="SidebarPosition.Right"
@bind-IsOpen="Visible"
Type="SidebarType.Over">
<ChildContent>
<div class="rightbar-title pt-2 pb-2">
<a rel='nofollow' href="javascript:void(0);" class="right-bar-toggle float-right">
<i class="dripicons-cross noti-icon" @onclick="CloseProfileBar"></i>
</a>
<h5 class="m-0">View Report</h5>
</div>
@if (Visible)
{
<CMCPdfView CompanyID="@CompanyID" ReportType="@ReportType" RecordId="@RecordId" />
}
</ChildContent>
</SfSidebar>