Hi,
I'm having some grief with the dashboard layout. It seems to want 100% of the page - is there an easy way to make it stick to the space provided to it by the <main> element? As is, I'm having to scroll despite the fact that the elements being displayed fit if I don't use the dashboard.
@using Syncfusion.Blazor.Layouts
<div style="width:100%;">
<SfDashboardLayout Columns="8" CellAspectRatio="@AspectRatio">
<DashboardLayoutPanels>
<DashboardLayoutPanel Row="0" Col="0" SizeX="2" SizeY="2">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="0" Col="2" SizeX="2" SizeY="2">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="0" Col="4" SizeX="2" SizeY="2">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="0" Col="6" SizeX="2" SizeY="2">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="2" Col="0" SizeX="4" SizeY="4">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="2" Col="4" SizeX="4" SizeY="4">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="4" Col="0" SizeX="6" SizeY="4">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="4" Col="6" SizeX="2" SizeY="4">
<HeaderTemplate><div>Header</div></HeaderTemplate>
<ContentTemplate>Content</ContentTemplate>
</DashboardLayoutPanel>
</DashboardLayoutPanels>
</SfDashboardLayout>
</div>
@code{
double AspectRatio = 2.1;
} |
Hi,
Thanks, I've ended up using some custom CSS on the top of the dashboard to get around the issue.
However, it was the width of the dashboard itself that overflowed - not the size of indivi (i.e. the final column would require a scrollbar if in use); so it's possible that it may arise for other users.