4

Having a ag-grid (Angular component) of ag-grid v8.20 Unfortunately the context menu is clipped if it is bigger than the grid:

(screenshot should be here but I can't upload it, imgur bug?)

Is there a way to make the context menu display completely, without clipping?

Seeschorle
  • 376
  • 1
  • 4
  • 18

3 Answers3

12

If anyone else comes across this post, here is a plunker to demonstrate the fix.

var gridOptions = {
    ...
    popupParent: document.querySelector("body")
    ...
};
Dan Obregon
  • 941
  • 9
  • 22
2

It was clipped because of a CSS style I set on my component. In my case it was a flexbox with "overflow-y: auto". I had to remove that to make it work.

Seeschorle
  • 376
  • 1
  • 4
  • 18
2

This is a general answer for people facing the same issue in react and typescript. This works for me.

popupParent={document.querySelector('body') || undefined}

Harshit Pant
  • 1,032
  • 11
  • 14