How I make the layout height automatically

I am using layout, tree, dataView to design my page when I get a problem. Now the page is like this:
download/file.php?mode=view&id=7496
What I want is to make the “category0, category1…” height automatically, so the scroll bars can disappear.
How do I do for it?


You can try to use 3W layout pattern and attach to the cell B accordion. Its items can use autoheight mode.
Something like
dhxAccord.cells(“a1”).setHeight(’*’);

But how many folders items you have in each cell? You data can be bigger than body height…

Darya, thanks for your answer. As you said, the data will be bigger than my body height. Does it have something wrong?

Hi
you will have scroll in any mode - cell’s or body’s

to adjust cell’s height - you need to:

  1. attach layout to custom div which will attached tobody
  2. calculate height for each cell manually
  3. change custom div’s height (increase probably)
  4. layout.setSizes() will adjust layout

not sure it is good solution, also when you will scroll body, you will also scroll
tree on left side and content from cell “c” on right side

Andrei,thanks. I had solve this problem. I used “attachDataView” to attach the dataviews to cell “b”. Then I used “attachObject” to attach a “div” which contains some dataViews to cell “b”, and the height of dataViews is “auto”.