ContextMenu with a lot of options - scroll needed



There is snippet:

If you open context menu by click on the top of clickable area, and expand options of Add, then scrollbar is added to the document. If you click on the bottom and expand options of Add button, then first options are not visible at all.

I think there is needed to adjust positions of context menu, define maxHeight and make it scrollable.


You may use the following css:


Here is the example:


I can do it, but I suggest to fix it in sources because it is not difficult to fix. Fix in source script will make that developer won’t be obligated to fix it himself in every place where problem occurs. Sometimes lists of options are dynamic and I think that is expected to work well always without custom fixes and now if you want to use context menu with a lot of options you have to fix it yourself each time.