query builder on bootstrap modal popup

I am very much disappointed when I have the query builder on a modal popup.
The fields menu were added to the document body and displayed behind the popup.

Any workaround or way to get the QB context menu displayed at the right place

try to increase zIndexBase value.

webix.env.zIndexBase = 10000;

should be used at the very beginning of code.

Can you please share any blog or document to know these kind of overriding setting of webix controls, particularly for query builder?