Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raffaele Gambelli on Sep 04, 2009 07:43
open dhtmlx forum
How to layout Tree and Grid to fill both horizontally and vertically page?

Hi all,

I'm using basic Tree and Grid releases.

I would like to know how to tell my two components to fill both horizontally and vertically the page where they are located.

Consider that I have a tree on the left and a grid on its right.
The tree has a fixed width, the grid has variable width, but I'm not able to adjust their height to fill the page.

Could you give me some hints?
Thanks in advance and best regards

Raffaele
Answer posted on Sep 04, 2009 09:02
Have you tried to use height:100% style for the tree's and grid's containers?
Answer posted by Raffaele Gambelli on Sep 04, 2009 09:35
Yes I've tried!

However I create tree in this way:

var tree = new dhtmlXTreeObject(treeId, "100%", "100%", repositoryId);

Other hints?

Best regards
Raffaele
Answer posted by Alex (support) on Sep 06, 2009 23:45

Hello,

in case of dhtmlXTreeObject(treeId, "100%", "100%", repositoryId) tree occupies the whole container (treeId). So, please check the treeId container has desired style.