Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 05, 2007 09:39
open dhtmlx forum
I need to crate a page that: Have a heading with some text. then the grid and at the bottom of the page...

I need to crate a page that:
Have a heading with some text.
then the grid
and at the bottom of the page some more text and other controls.
But as u know users have different sizes of the browser window so for my application too work fine
I always want to let the controll always be at the bottom without the scrollbars on the right side.

U have this to get the size of the current document:
document.documentElement.clientWidth
document.documentElement.clientHeight

So I want to resize the grid like this:
gridhight = document.documentElement.clientHeight - topsize - bottomsize;

Answer posted on Mar 05, 2007 09:40

different doctypes and browsers can react different ways on this but  you can try pleying with the following structure:

 
<body style=”height:100%”>
<table style=”height:100%;width:100%”>
<tr>
                <td style=”height:100px”>

                              Top
                </td>

</tr>
<tr>
                <td>
                               <div id=”yourgrid” … />
                </td>
</tr>
<tr>
                <td style=”height:100px”>
                               bottom
                </td>
</tr>
</table>
</body>

Answer posted by Inga (Support) on Dec 09, 2014 12:08

To find more precise comments upon this issue, we can offer you read about combobox read only and daily scheduler.