Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vincent Millet on Nov 14, 2008 09:40
open dhtmlx forum
Autoresize a grid in layout in accordion in layout

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
Answer posted by Support on Nov 17, 2008 04:55
Hello,

Problem in accordion. Here is a demo attached.
Attachments (1)
demo.zip246.30 Kb
Answer posted by Vincent on Nov 17, 2008 14:31
Hi,

thanks but it doesn't work with a splitted grid.

Vincent
Answer posted by Vincent on Nov 17, 2008 15:22
I get the problem when I dock and undock the cell too.

Vincent
Answer posted by Support on Nov 18, 2008 05:25
You are using too complex statement.
Lots of code update required, problem will fixed in future release.
Try to simplify the statement.