dhtmlXMenuObject - context-menu getting truncated


We use dhtmlXMenuObject in our app to show context-menu as given in below snippet.
Showing context menu at mouse click position and scroll displayed when there are more than 20 items in context-menu.

The problem I have is when context menu displayed at bottom of the page in browser, it is going beyond browser visible area and menu items getting truncated without showing bottom scroll button.

How to bring scroll when context-menu is going beyond view-port? I want to show context-menu always in visible area of browser and display scroll when there is no space to show all 20 menu items(as per my configuration).

var view = new dhtmlXMenuObject();
view._showPolygon = new_showPolygon;

I observed same behavior in DHX samples page below. When I re-size browser to show only one menu item , I see menu-items going beyond visible area and scroll is also not coming. dhtmlx.com/docs/products/dhtmlxG … .html#code

Thanks in Advance.

This problem observed on both DHX 3.6 and DHX 4

Locally works fine in both versions
Please, provide us a direct link or completed demo on support@dhtmlx.com to reproduce and inspect your issue. Plus add a link to this topic in the letter
docs.dhtmlx.com/auxiliary_docs__ … pport.html

See attaches
cmenu.zip (384 KB)