diff --git a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml index 785c9b8e82..b670a1f2ce 100644 --- a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml +++ b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml @@ -6956,6 +6956,12 @@ Gets True if this component is out of panel. + + + Gets or sets if this item dos not participates in overflow logic. + Defaults to false + + Gets the InnerText of . @@ -7150,7 +7156,7 @@ - Gets or sets a value indicating whether the region overlaps the anchor on the horizontal axis. + Gets or sets a value indicating whether the region overlaps the anchor on the horizontal axis. Default is true which places the region aligned with the anchor element. diff --git a/src/Core/Components/Overflow/FluentOverflowItem.razor b/src/Core/Components/Overflow/FluentOverflowItem.razor index 9087fb6d96..bc12287af7 100644 --- a/src/Core/Components/Overflow/FluentOverflowItem.razor +++ b/src/Core/Components/Overflow/FluentOverflowItem.razor @@ -1,6 +1,6 @@ @namespace Microsoft.FluentUI.AspNetCore.Components @inherits FluentComponentBase -
+
@ChildContent -
\ No newline at end of file +
diff --git a/src/Core/Components/Overflow/FluentOverflowItem.razor.cs b/src/Core/Components/Overflow/FluentOverflowItem.razor.cs index 9b6c143cc6..a7fb7dbdbc 100644 --- a/src/Core/Components/Overflow/FluentOverflowItem.razor.cs +++ b/src/Core/Components/Overflow/FluentOverflowItem.razor.cs @@ -34,6 +34,13 @@ public partial class FluentOverflowItem : IDisposable [Parameter] public RenderFragment? ChildContent { get; set; } + /// + /// Gets or sets if this item dos not participates in overflow logic. + /// Defaults to false + /// + [Parameter] + public bool Fixed { get; set; } = false; + /// /// Gets True if this component is out of panel. /// diff --git a/src/Core/Components/Popover/FluentPopover.razor.cs b/src/Core/Components/Popover/FluentPopover.razor.cs index c4d7ab1e8a..30c3f912de 100644 --- a/src/Core/Components/Popover/FluentPopover.razor.cs +++ b/src/Core/Components/Popover/FluentPopover.razor.cs @@ -27,7 +27,7 @@ public partial class FluentPopover : FluentComponentBase public HorizontalPosition? HorizontalPosition { get; set; } = AspNetCore.Components.HorizontalPosition.Unset; /// - /// Gets or sets a value indicating whether the region overlaps the anchor on the horizontal axis. + /// Gets or sets a value indicating whether the region overlaps the anchor on the horizontal axis. /// Default is true which places the region aligned with the anchor element. /// [Parameter] @@ -130,11 +130,11 @@ protected override void OnParametersSet() protected virtual async Task CloseAsync() { Open = false; - await AnchoredRegion.FocusToOriginalElementAsync(); if (OpenChanged.HasDelegate) { await OpenChanged.InvokeAsync(Open); } + await AnchoredRegion.FocusToOriginalElementAsync(); } ///