Layout resizing misbehavior

Hi I have the professional version of dhtmlx suite.

I’m using a simple “2U” layout, the cell(“a”) width is fixed to 300 I noticed a misbehavior.

Try to collapse cell “a”, then collapse cell “b” (cell a expands) and then expand cell “b”. The cell a is resized to a a very small width (nearly 30px) and stay this size until refresh. This annoying because I have denied my users from resizing.

I have tried initializing the layout using the simplest code to see if the error reproduces and it did:

<script type="text/javascript" src="Components/dhtmlx/dhtmlxGrid/codebase/dhtmlxcommon.js"></script>

<script type="text/javascript" src="Components/dhtmlx/dhtmlxLayout/codebase/dhtmlxcontainer.js"></script>

<script type="text/javascript" src="Components/dhtmlx/dhtmlxLayout/codebase/dhtmlxlayout.js"></script>

<script type="text/javascript">


    function doOnLoad() {
        var layout = new dhtmlXLayoutObject("layoutContainer", "2U", "dhx_skyblue");
        layout.cells("a").setWidth(300);

    }
</script>

thanks

Hello,

you may try to use the following to solve the issue:

layout.attachEvent(“onExpand”,function(id){
layout.cells(“a”).setWidth(300);
});

Didn’t work. Is this a know issue?

Is this a know issue?

there is an expected behaviour. The cells “a” was opened when you opened the “b” cell. Therefore “a” cell became narrow. And as layout restores the previous open state, the “a” cell will keep its small width until it’s resized.

Didn’t work.

I’ve attached the sample
sample.zip (60 KB)