Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dan on Jan 13, 2009 20:46
open dhtmlx forum
Custom layout

Below is the code for a custom layout. The layout is fine. But, I am finding a couple problems. First, cell f doesn't expand fully and any vertical resizing results in a jump to the size of the abutting cell. Also, cells d and e collapse properly when cell is collapsed, but doesn't return the original dimensions. Can the layout control be used to construct this layout?

"6J": '<layout><autosize hor="b;c;d;e" ver="a;e;f" rows="4" cols="3"/><row><cell obj="a" a_width="*" resize="hor" neighbors="a;b,c,d,e;f" rowspan="7"/><cell sep="ver" left="a" right="b,c,d,e" dblclick="a" rowspan="7"/><cell obj="b" b_width="*" b_height="*" resize="ver" neighbors="b;c" /><cell sep="ver" left="a;b,c" right="f" dblclick="f" rowspan="3"/><cell obj="f" f_width="*" f_height="*" resize="hor" neighbors="b,c;f" rowspan="3"/></row><row sep="true"><cell sep="hor" top="b" dblclick="b" bottom="c"/></row><row><cell obj="c" c_width="*" c_height="*" resize="ver" neighbors="b;c"/></row><row sep="true"><cell sep="hor" top="c,f" dblclick="c" bottom="d" colspan="3" /></row><row><cell obj="d" d_width="*" d_height="*" resize="ver" neighbors="d;e" colspan="3"/></row><row sep="true"><cell sep="hor" top="d" dblclick="d" bottom="e" colspan="3"/></row><row><cell obj="e" e_width="*" e_height="*" resize="ver" neighbors="d;e" colspan="3"/></row></layout>',

"6J_hor": new Array("a", "b;c;d;e", "f"),
"6J_ver": new Array("a;b;f", "a;c;f", "a;d", "a;e"),
Answer posted by Support on Jan 14, 2009 00:49
Could you please attach a picture for this pattern?
Answer posted by Dan on Jan 14, 2009 06:24

Attached is the layout.  I identified three zones.  Zone 1 should horizontal collapse and expand zone 2 and 3, center column.  The problem I run into is zone 3 rows expand, but return to width of center column of (zone 2 left rows).  Zone 2 should vertical collapse the left two rows and leave right column as is.  Zone 3 should vertical collapse and and leave the other two zones alone.   Another problem I encountered is any resizing on seperator between zone 2 and zone 3 results in zone 2's right column jumping to the vertical size of the zone 2's left column rows. 

Thanks, Dan

 

 

Attachments (1)
Layout.jpg44.48 Kb
Answer posted by Support on Jan 14, 2009 06:58
Requested layout can't be created using single pattern. You should use nested layout's. For example: 4C* + 3J in cell "b"
*4C - new pattern, see attachment for details.
Attachments (1)