-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HxContextMenuGridColumn] Using HxContextMenu in HxGrid causes extra scrollbar to apear when dropdow is larger then the grid #898
Comments
This is something that should have been addressed in the latest release by adding PopperStrategy parameter to the HxContextMenu. |
... we decided not to use attribute splatting for performance reasons as unlike the dropdowns or form controls, the context menu is usually rendered in a loop. |
I have version 4.6.15 (installed yesterday). Applying the strategy through the attribute feels more like a workaround than a proper solution to me. |
And what would be a proper solution to you? |
Should you be interested, the discussion on this topic is here #844 |
I reviewed #844. In my opinion, the strategy should be controlled by the Responsive property without requiring any additional attributes, as "absolute" only works well in ideal conditions. |
I currently need to apply strategy:fixed even if the dropdown is not in grid because of issues with scrollbars and partial visibility, but I have a complex form with independently scrollable sections. |
I can confirm that the issue can be resolved using the |
@crdo Can we add the |
Based on the internal discussion: If feasible (without impacting performance), we should set the new
|
Using
HxContextMenu
withinHxGrid
in responsive mode causes an extra vertical scrollbar to appear when the context menu dropdown is higher than the grid itself.Observed behavior:
The grid displays an unnecessary vertical scrollbar when the context menu dropdown overflows the grid's height.
Expected behavior (achieved with
<style type="text/css">.table-responsive {overflow-x:initial;} </style>
):The grid should not display an additional scrollbar, allowing the context menu dropdown to expand freely without affecting the grid's vertical scrolling.
Steps to Reproduce:
Follow the example in the Havit.Blazor documentation for
HxGrid
with context menus (https://havit.blazor.eu/components/HxGrid#context-menu).Set the
PageSize
property of theHxGrid
to 1.In my real situation, I have two rows in the grid and three rows in the context menu.
The problem is the same as described in issue #449, and the solution should follow the approach outlined in #450 (comment).
The problem is that it appears that there is currently no way to apply
AdditionalAttributes
to the dropdown toggler. I believe the correct solution would be forto be added by
HxGrid
whenResponsive="true"
.The text was updated successfully, but these errors were encountered: