diff --git a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml index 0159ed35ba..c36f2d3f6a 100644 --- a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml +++ b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml @@ -5740,6 +5740,16 @@ Default is unset. See + + + How short the space allocated to the default position has to be before the tallest area is selected for layout. + + + + + How narrow the space allocated to the default position has to be before the widest area is selected for layout. + + Gets or sets popover opened state. diff --git a/examples/Demo/Shared/Pages/Popover/Examples/PopoverDefault.razor b/examples/Demo/Shared/Pages/Popover/Examples/PopoverDefault.razor index aa455b2b49..99d8bbb3c2 100644 --- a/examples/Demo/Shared/Pages/Popover/Examples/PopoverDefault.razor +++ b/examples/Demo/Shared/Pages/Popover/Examples/PopoverDefault.razor @@ -9,7 +9,7 @@ Open Callout 2 - +
Callout Header
Callout Body @@ -17,7 +17,7 @@
Callout Footer
- +
Callout Header
Callout Body diff --git a/src/Core/Components/Popover/FluentPopover.razor b/src/Core/Components/Popover/FluentPopover.razor index d43c41666c..7fb495cee2 100644 --- a/src/Core/Components/Popover/FluentPopover.razor +++ b/src/Core/Components/Popover/FluentPopover.razor @@ -8,6 +8,8 @@ HorizontalInset="true" HorizontalDefaultPosition="@HorizontalPosition" VerticalDefaultPosition="@VerticalPosition.Bottom" + VerticalThreshold="@VerticalThreshold" + HorizontalThreshold="@HorizontalThreshold" Shadow="@ElevationShadow.Flyout" Class="@ClassValue" Style="@StyleValue"> diff --git a/src/Core/Components/Popover/FluentPopover.razor.cs b/src/Core/Components/Popover/FluentPopover.razor.cs index cec570ee49..bad333a022 100644 --- a/src/Core/Components/Popover/FluentPopover.razor.cs +++ b/src/Core/Components/Popover/FluentPopover.razor.cs @@ -25,6 +25,18 @@ public partial class FluentPopover : FluentComponentBase [Parameter] public HorizontalPosition? HorizontalPosition { get; set; } = AspNetCore.Components.HorizontalPosition.Unset; + /// + /// How short the space allocated to the default position has to be before the tallest area is selected for layout. + /// + [Parameter] + public int VerticalThreshold { get; set; } = 0; + + /// + /// How narrow the space allocated to the default position has to be before the widest area is selected for layout. + /// + [Parameter] + public int HorizontalThreshold { get; set; } = 0; + /// /// Gets or sets popover opened state. ///