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
[HxGrid] Context menu causes scrollbar #118
Comments
@crdo, can you please take a look and asses this issue? Thanx. |
@Apskaita5 @hakenr yes, I have came across this issue already. @Harvey1214 please create a reproducing page for this issue in our BlazorTestApp so I can try to come up with some solution. |
@crdo the reproducing page is completed (https://dev.azure.com/havit/DEV/_git/002.HFW-HavitBlazor/commit/6ade98d68b9ffa9a1447636901ebc2d0f26fdf00). |
@Apskaita5 could you please confirm that the HxGrid instance that you refer to is responsive (IsResponsive=true)? |
Anyway, what causes your issue most likely is the presence of
@hakenr can we set our own Popper config to the relevant HxCompoments? |
Yep. (CSS table-responsive) |
Only if it is present on Havit components. |
Related discussion in Bootstrap repo twbs/bootstrap#33463 (comment) |
As far as I understand, new Bootstrap release should resolve this issue with twbs/bootstrap#33684 and we don't need to do anything on our side. @crdo?
Yes, we are technically able to do that, but we have to be very careful with HxContextMenu which is typically rendered repeatedly (e.g. in HxGrid) and calling JavaScript from Blazor for every single instance might cause significant performance issues. |
@hakenr I think that this issue has been already merged into one of the previous versions. |
Already reported to Bootstrap: twbs/bootstrap#35774 |
Bootstrap 5.2.0 probably does not offer any suitable solution (setting boundary with data-attribute or something like that). It is probably achievable with JavaScript options (setting boundary to body): twbs/bootstrap#36358 |
@hakenr we can give a try the 5.2s new possibility to set component configuration via data attributes... |
@crdo But the boundary is not |
@hakenr adding |
When there are few rows in the grid and a relatively large context menu, when showing context menu it doesn't fit the table area which forces a scrollbar to appear (part of context menu hidden).
The text was updated successfully, but these errors were encountered: