possible bug: modal window order_branch

I’m putting my gantt into a modal window using jquery-ui dialog and when I try to drag to order the branches it fails on finding the element by point and returns null. On line 1867 in dhtmlxgantt.js:

var target = document.elementFromPoint(pos.x-document.body.scrollLeft+1, y-document.body.scrollTop);

Maybe its the sizing of the windows, or how jquery-ui handles it?

I couldn’t reproduce the error with the latest version of gantt, check the demo

One thing that confirmed to be working not quite well - is a sizing of gantt in container with paddings. The inner scrollers appears to be misaligned. Currently the only way to avoid it is to render gantt in container that does not have paddings