havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
463 stars 63 forks source link

Attribute splatting for HxContextMenu dropdown trigger element #844

Open crdo opened 3 weeks ago

crdo commented 3 weeks ago

Adressing Issue #118 [HxGrid] Context menu causes scrollbar

crdo commented 3 weeks ago

I don't think it is a good idea to make "strategy":"fixed" default. If the .dropdown-menu element is set as position: fixed; its position is calculated and updated when you scroll the window. While with position: absolute;, it is calculated on the first render and thats it.

crdo commented 3 weeks ago

On the other hand - if you start scrolling while the HxContextMenu is open, it disappears as you no longer hover the row.

hakenr commented 3 weeks ago

New PopperStrategy="[Absolute|Fixed]" parameter?

crdo commented 1 week ago

Either PopperStrategy or PositionStrategy works for me.