To reproduce this bug:
Create blank Blazor server app
Replace site.css with:
html, body {
height: 100%;
margin: 0px;
padding: 0px;
line-height: 1.0;
overflow-y: hidden;
}
.comp-rows {
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
}
.comp-row-auto {
flex-grow: 0;
}
.comp-row-stretch-scroll {
flex: 1;
overflow: auto;
}
Replace Index.razor
@page "/"
<div class="comp-rows">
<div class="comp-row-auto">
<h1>Hello, world!</h1>
Welcome to your new app.
</div>
<div class="comp-row-stretch-scroll">
@for (int i = 1; i <= 100; i++)
{
string n = $"test{i}";
<div>
<EjsRadioButton Name="@n" Label="@n"></EjsRadioButton>
</div>
}
</div>
</div>
Now scroll Index page to the bottom, ckick on radio button and page goes blank.
Everything works if scrollpos = 0