Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jesus Gonzalez on Nov 02, 2009 07:18
open dhtmlx forum
Layout Problem

Hi,

I have a problem with the component layout. When the layout has a pattern 2E, to close and open layout, the layout takes on top a very small size. This error can be seen at the following address: http://img230.imageshack.us/img230/8137/layouteu.jpg

For this size we have to take the following steps:
1º. Collapse layout "b".
2º. Collapse layout "a".
3º. Collapse layout "b".
4º. Expand layout "b".

What is the problem?
Thanks for your support.


Best regards,
Jesus.
Answer posted by Alex (support) on Nov 02, 2009 08:07

Hello,

you can try to use the following approach to solve the issue:

var dhxLayout = new dhtmlXLayoutObject("parentId", "3E");
var arr=[];
arr["a"] = dhxLayout.cells("a").getHeight();
arr["b"] = dhxLayout.cells("b").getHeight();
arr["c"] = dhxLayout.cells("c").getHeight();
dhxLayout.attachEvent("onExpand",function(id){
    for(var a in arr){
        this.cells(a).setHeight(arr[a]);
    }
    return true

})

Answer posted by Jesús González on Nov 03, 2009 01:00
Thanks, works OK!!

Best regards,
Jesus.