DHTMLX 4.0 Layout and Windows

When trying to apply

layout.dhxWins.attachViewportTo(layout.cells(id))

which worked in previous version, I am unable to create new Window. I receive the following:

Uncaught TypeError: Object # has no method ‘appendChild’ dhtmlx.js:9
createWindow dhtmlx.js:9
openWindow dhtmlx4.html:80
(anonymous function) dhtmlx4.html:48
a.callEvent dhtmlx.js:9
obj.onclick

function openWindow just creates and centers new window.

Hi

layout.cells(id) now object, html cell is layout.cells(id).cell, i.e.
layout.dhxWins.attachViewportTo(layout.cells(id).cell)

probably will interested in:
dhtmlx.com/docs/products/dhtmlxL … _cell.html