Dear support,
I use a layout(‘3W’) with in cells(‘b’):
An Accordion which contains a Layout(‘2E’)
which contains an attached grid
When I collapse layout(‘3W’).cells(‘c’) the accordion is well resized but not his layout which keeps his width.
I create my components by using:
var dhxLayout = new dhtmlXLayoutObject(document.body, “3W”);
//…
accordionB=dhxLayout.cells(“b”).attachAccordion();
accordionB.addItem(“myAccordionPanel”, ‘myAccordionPanel’);
//…
accordionB.cells(“myAccordionPanel”)._layout=accordionB.cells(“myAccordionPanel”).attachLayout(‘2E’); // layout which is not resized even if the width of accordionB.cells(“myAccordionPanel”) changed
accordionB.cells(“myAccordionPanel”)._layout.cells(‘a’)._grid = accordionB.cells(“azerty”)._layout.cells(‘a’).attachGrid();
//…
1) I try to use accordionB.cells(“myAccordionPanel”)._layout.setSizes(accordionB.cells(“myAccordionPanel”)); without success
2) I didn’t find the way to get the current active panel of the Accordion.
3) May be I should use something like dhxLayout.attachEvent(‘onPanelResizeFinish’, but I don’t see what to do with this event if setSizes doesn’t work on the layout
Do you have an idea?
Best regards,
Vincent
Hi,
thanks but it doesn’t work with a splitted grid.
Vincent
I get the problem when I dock and undock the cell too.
Vincent
You are using too complex statement.
Lots of code update required, problem will fixed in future release.
Try to simplify the statement.