-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
OverlayScrollbars using with Angular agGrid #149
Comments
Good day! Unfortunately its very hard to apply |
我也正在关注这方面的问题,并且正在尝试。但似乎agGrid的virtualList导致我并不能直接使用OverlayScrollbars进行覆盖。 我正在试图寻找一个办法,将OverlayScrollbars的viewport替换成ag的scroll容器,目的是为了保证agGrid自身的onScroll event。 Next is google translate: I'm looking into this too and am trying. But it seems that the virtualList of agGrid makes me unable to directly use OverlayScrollbars to overlay. I am trying to find a way to replace the viewport of OverlayScrollbars with the scroll container of ag, in order to ensure the onScroll event of agGrid itself. |
@FontEndArt this should be possible with |
@FontEndArt @dev-en-debug would you be able to provide an example on codesandbox or stackblitz? Then I can look into it and provide a working solution. |
Are there any updates related to this topic? Have there been any adjustments to make overlay scrollbars work in conjunction with ag-grid? |
@benjamin-hoefer-fnt With I've made an example here: https://codesandbox.io/s/laughing-sanderson-pn255v?file=/src/Grid.tsx (the logic starts at line 86 and goes to 146). Its a little more complex than I would like, but since agGrid is pretty sophisticated and handles the x and y scroll axis completely separately its not a surprise to me. The example is in |
Thank you so much for your work! I will get back to it as soon as I has to implement it for our agGrid table. I will give you an update when I am on it. |
emmm,居然是以这种形式去替换掉AG的滚动条,但是这样AG还可以正常开启虚拟滚动而不受影响吗? |
@KingSora I implemented agGrid overlayscrollbars solution analog to your React example using Angular. I utilized Renderer2 of Angular for DOM manipulation and it works the same way as in your example! Thank you for your great support! I really appreciate. |
@benjamin-hoefer-fnt Your right, since the horizontal scrollbar doesn't know anything about the vertical scrollbar they are overlapping. As a workaround you could style both scrollbars to not overlap. (the vertical scrollbars |
I will give it a shot! Thx :) |
Since this issue seems to be solved now, I'll proceed with closing it. In case there are any other issues please don't hesitate to give feedback here or to open a new issue :) |
Related: #639 |
Hi @benjamin-hoefer-fnt, would you be able to share a code sample to demonstrate how you manage the AgGrid - OverlayScrollbars Angular integration? Thank you. |
The only way I've found to apply OverlayScrollbars to Angular agGrid is by using this method:
in .ts file:
In other discussions js-scrollbar components are usually applied using "ag-body-viewport" class.
But there are three key problems, which doesn't allow to use this solution:
Is there any ways to solve those issues, or other way to apply OverlayScrollbars in Angular agGrid?
The text was updated successfully, but these errors were encountered: