0

I am rendering an angular slickgrid on a ngb modal. When I open the grid-menu and scroll vertically the grid moves but grid-menu doesn't move along with grid menu-button. It stays at the same position.

What could be the possible solution for this?

Anant Shekhar
  • 101
  • 1
  • 5
  • the Grid Menu is appended to the HTML body at the position it was opened, it does not follow the grid, it will always stay at the position it was opened (it's not part of the grid, it really is appended to the body which is why it does what you described). Perhaps what you could do is close the Grid Menu (via its addon instance) when the `onScroll` is triggered to avoid user confusion – ghiscoding Jul 07 '21 at 17:21
  • Thank you for your response. So, there is no other way we can make it work than to close the menu on scroll? – Anant Shekhar Jul 08 '21 at 05:30
  • not unless you want to contribute to the project to fix it... but anyway I'm not an expert in CSS and I don't see how that would be doable since the Grid Menu is not attached to the grid itself, it's just positioned were you clicked the button. – ghiscoding Jul 08 '21 at 12:49

0 Answers0