var layout = new dhtmlXLayoutObject(“target-div”, “2U”);
layout.attachEvent(“onResizeFinish”, function(){
var w=0;
layout.forEachItem(function(item){
w+=item.getWidth();
});
layout.cells(“a”).setWidth(w*0.3);
});
It keeps the cells(“a”) width as 30% of the whole layout width.