Hi,
I am having trouble laying out components (using flex) within a Dialog with buttons. If I change the outer flex div from 80% to 100% it uses too much space. If I remove the 100% on the EjsGrid div, it also does not work.
If anyone can tell me what I am doing wrong, that would be great, Thanks!
@using Syncfusion.EJ2.Blazor.Grids
@using Syncfusion.EJ2.Blazor.Navigations
@using Syncfusion.EJ2.Blazor.Popups
@using Syncfusion.EJ2.Blazor.Buttons
<EjsDialog
ShowCloseIcon="true"
AllowDragging="true"
EnableResize="true"
Visible="false"
IsModal="true">
<DialogAnimationSettings Effect="DialogEffect.None" />
<DialogTemplates>
<Header>Header text</Header>
<Content>
<div style="height: 80%; min-height: 80%;display: flex;align-items: stretch;flex-direction: column;">
<p>Some text here</p>
<div>
<EjsToolbar>
<ToolbarItems>
<ToolbarItem PrefixIcon="e-new-icon tb-icons" TooltipText="New"></ToolbarItem>
<ToolbarItem Type="@ItemType.Separator"></ToolbarItem>
</ToolbarItems>
</EjsToolbar>
</div>
<div style="flex: 1; height: 100%; min-height: 100%;">
<EjsGrid />
</div>
</div>
</Content>
</DialogTemplates>
<DialogButtons>
<DialogButton ButtonModel="@OkBtn" />
<DialogButton ButtonModel="@CancelBtn" />
</DialogButtons>
</EjsDialog>
@code {
private ButtonModel OkBtn = new ButtonModel { Content = "OK", IsPrimary = false };
private ButtonModel CancelBtn = new ButtonModel { Content = "Cancel" };
}