dhtmlxLayout : setSize issue

Hello,

I’m using version 3.0 of the layout component and I am encountering an issue with the setSize method. After reducing the layout parent’s width and calling setSize, the layout width is not equal to its parent’s width (it is larger). This issue is not present when enlarging the parent. Thus, the issue seems to be related to the fact that I use the “setWidth” method ; without using it, everything is working fine (see code below).

Initialization :

dhxLayout = new dhtmlXLayoutObject(parent, "2U", "dhx_blue");

On page resize :

dhxLayout.setSizes();
dhxLayout.cells("b").setWidth(new_width);    

Thanks for any help.
Regards,

Loïc

Hello,

If the cell has fixed width, the layout can not be narrower than this cell.