Skip to content

Commit

Permalink
fix(Menuable) : calc ComputedTop(#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
kogel-net authored Apr 10, 2023
1 parent 7f7a8e7 commit 6e02f76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Component/BlazorComponent/Mixins/Menuable/BMenuable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ protected double ComputedTop

double top = 0;

if (activator is null || content is null)
{
return top;
}

if (Top) top += activator.Height - content.Height;

if (!IsDefaultAttach)
Expand Down

0 comments on commit 6e02f76

Please sign in to comment.