Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14121,6 +14121,11 @@
The content is stretched to fill the available space.
</summary>
</member>
<member name="F:Microsoft.FluentUI.AspNetCore.Components.HorizontalAlignment.SpaceBetween">
<summary>
The items are evenly distributed within the alignment container along the main axis.
</summary>
</member>
<member name="T:Microsoft.FluentUI.AspNetCore.Components.HorizontalPosition">
<summary>
Describes the horizontal positioning of a <see cref="T:Microsoft.FluentUI.AspNetCore.Components.FluentAnchoredRegion"/>.
Expand Down Expand Up @@ -15128,6 +15133,16 @@
The content is aligned to the bottom
</summary>
</member>
<member name="F:Microsoft.FluentUI.AspNetCore.Components.VerticalAlignment.Stretch">
<summary>
The content is stretched to fill the available space.
</summary>
</member>
<member name="F:Microsoft.FluentUI.AspNetCore.Components.VerticalAlignment.SpaceBetween">
<summary>
The items are evenly distributed within the alignment container along the main axis.
</summary>
</member>
<member name="T:Microsoft.FluentUI.AspNetCore.Components.VerticalPosition">
<summary>
Describes the vertical positioning of a <see cref="T:Microsoft.FluentUI.AspNetCore.Components.FluentAnchoredRegion"/>.
Expand Down
3 changes: 3 additions & 0 deletions src/Core/Components/Stack/FluentStack.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private string GetHorizontalAlignment()
HorizontalAlignment.Right => "end",
HorizontalAlignment.End => "end",
HorizontalAlignment.Stretch => "stretch",
HorizontalAlignment.SpaceBetween => Orientation == Orientation.Vertical ? "start" : "space-between",
_ => "start",
};
}
Expand All @@ -98,6 +99,8 @@ private string GetVerticalAlignment()
VerticalAlignment.Top => "start",
VerticalAlignment.Center => "center",
VerticalAlignment.Bottom => "end",
VerticalAlignment.Stretch => "stretch",
VerticalAlignment.SpaceBetween => Orientation == Orientation.Horizontal ? "start" : "space-between",
_ => "start",
};
}
Expand Down
5 changes: 5 additions & 0 deletions src/Core/Enums/HorizontalAlignement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ public enum HorizontalAlignment
/// The content is stretched to fill the available space.
/// </summary>
Stretch,

/// <summary>
/// The items are evenly distributed within the alignment container along the main axis.
/// </summary>
SpaceBetween,
}
10 changes: 10 additions & 0 deletions src/Core/Enums/VerticalAlignment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,14 @@ public enum VerticalAlignment
/// The content is aligned to the bottom
/// </summary>
Bottom,

/// <summary>
/// The content is stretched to fill the available space.
/// </summary>
Stretch,

/// <summary>
/// The items are evenly distributed within the alignment container along the main axis.
/// </summary>
SpaceBetween,
}
Loading