Skip to content

Commit af66f64

Browse files
vnbaaijdvoituron
andauthored
If the NavMenu itself is collapsed, the submenu of a group cannot be displayed at the end as it would be off screen on a mobile device (#4171)
Co-authored-by: Denis Voituron <dvoituron@outlook.com>
1 parent cf14fb2 commit af66f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Components/NavMenu/FluentNavGroup.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{
4848
<FluentMenu @bind-Open="_open"
4949
Anchor="@Id"
50-
HorizontalPosition="@HorizontalPosition.End"
50+
HorizontalPosition="@(Owner.Expanded ? HorizontalPosition.End : HorizontalPosition.Center)"
5151
HorizontalInset="@false"
5252
VerticalPosition="@VerticalPosition.Bottom"
5353
VerticalInset="@true"

0 commit comments

Comments
 (0)