Skip to content

Commit

Permalink
Splitter mask added during resize to avoid problems with frames
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Mar 12, 2024
1 parent a6e16ad commit 02076b6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Radzen.Blazor/RadzenSplitter.razor.cs
Expand Up @@ -128,6 +128,8 @@ public async Task OnPaneResizing()
{
IsResizing = true;

StateHasChanged();

await Task.CompletedTask;
}

Expand Down
4 changes: 4 additions & 0 deletions Radzen.Blazor/RadzenSplitterPane.razor
Expand Up @@ -6,6 +6,10 @@
{
<div id="@GetId()" @attributes="Attributes" class="@GetComponentCssClass()" style="flex-basis: @Size; @Style" data-index="@Index">
@ChildContent
@if (Splitter.IsResizing)
{
<div class="rz-splitter-mask" />
}
</div>


Expand Down
9 changes: 9 additions & 0 deletions Radzen.Blazor/themes/components/blazor/_splitter.scss
Expand Up @@ -156,3 +156,12 @@ $splitter-bar-hover-opacity: 1 !default;
}
}
}

.rz-splitter-mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}

0 comments on commit 02076b6

Please sign in to comment.