Running on FF 35.0 but reproduced on Chrome and IE11.
I am creating a grid inside a layout cell and attaching a context menu to the grid. This layout is inside a dialog window (absolutely placed element that appears as a floating window) However the context menu is displayed underneath the dialog.
This works fine with the same code using 3.6 but now with 4.12 it is showing this odd behavior. The menu is being displayed and when the dialog window is closed you can then see the context menu.
code is below from the point that the grid has been attached to the layout. Only change was to the image/icon paths and the menu load due to 4.12 changes.
Any suggestions?
I’ve tried specifying an element id in the dhtmlXMenuObject instantiation and use css to set that element to a z index higher than anything we use but this didn’t make any difference.
//create grid in layout
myGrid = myLayout.cells("b").attachGrid();
//configure grid
myGrid.setImagePath("/dhtmlx/imgs/dhxgrid_skyblue/");
myGrid.setHeader("Select,Name");
myGrid.setColTypes("ch,ro");
myGrid.setInitWidths("50,*");
myGrid.setColAlign("center,left");
myGrid.enableMultiselect(true);
myGrid.attachEvent("onCheck", updateTreeCheckbox);
myGrid.setColSorting("str,str");
myGrid.setCustomSorting(natural_sort_compare, 1);
// configure context menu
myMenu = new dhtmlXMenuObject();
myMenu.renderAsContextMenu();
myMenu.setIconsPath("/dhtmlx/imgs/dhxmenu_skyblue");
myMenu.attachEvent("onClick", onMenuClick);
myMenu.loadStruct("<?xml version='1.0'?><menu id='0'><item id='select' text='Select Items'/><item id='deselect' text='Deselect Items'/></menu>");
myGrid.enableContextMenu(myMenu);
myGrid.init();
myGrid.setUserData("", "Dir", dir);
myGrid.attachEvent("onXLE", loadDone);
myGrid.attachEvent("onBeforeContextMenu", onShowContext);