-
Notifications
You must be signed in to change notification settings - Fork 460
Closed
Description
🐛 Bug Report
I'm getting unexpected results using FluentGrid:
- Code executes differently when wrapped in a FluentGrid?
- I'm getting two scroll bars in the default project when the content exceeds the available space.
💻 Repro or Code Sample
<!-- Part 1: Unexpected results
1. Shows Line 101 a hundred times
2. On default project causes a second scroll bar to appear when run in isolation. If run
in conjunction with Part 2 this goes away?
-->
<FluentGrid>
@for (int i = 1; i <= 100; i++)
{
<FluentGridItem xs="12">Line @i</FluentGridItem>
}
</FluentGrid>
<!-- Part 2: Gives expected results
1. Shows Line 1 thru Line 100
2. On default project doesn't causes a second scroll bar to appear when run in isolation.
-->
@* @for(int i = 1; i<= 100; i++)
{
<label>Line @i</label>
<br/>
} *@
🤔 Expected Behavior
- Code to run the same in FluentGrid as it does outside of FluentGrid.
- No double scrollbars.
😯 Current Behavior
- Value is showing the last value when rendered to the screen.
- Two scrollbars are being created.
🔦 Context
Trying to dynamically add controls and getting undesirable results.
🌍 Your Environment
- Windows 10 Enterprise
- Chrome and Edge
- .Net 8.0, Microsoft.FluentUI.AspNetCore.Components 4.4.1
Metadata
Metadata
Assignees
Labels
No labels