Skip to main content

settting the height of dojo.drawer

3 replies [Last post]
moralbarometer
Offline
Joined: 2009-05-24
Points: 0

hi all,
I want to change the default height of dojo.drawer.How is this done? Please kindly help out

thanks in advance.
Ivo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
moralbarometer
Offline
Joined: 2009-05-24
Points: 0

Hi,
I did not understand what you meant by overfflow but latteron got it well.This is what i did to be on the right track.set startheight, remove overflow: off property, set in div overflow-y:auto. and it then works well.

Thanks once more for this enlightenment.

Ivo

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

The dojo.drawer sizes to fit the elelment you put it in:

Basically you can add 20 pixels to what you want and set it on a surrounding div.

<div height="340px">

</div>

For finer grain control of the content area you can set the height on the Dcontainer that manages the content.

It can be found at line 173 - 177 of the /resources/dojo/drawer/component.js

dcontainer = new jmaki.DContainer(
{target: contentPane,
useIframe : iframe,
content : content,
overflow: of});

You can add a start height property to this to change height you want to start with:

dcontainer = new jmaki.DContainer(
{target: contentPane,
useIframe : iframe,
content : content,
startHeight : 100,
overflow: of});

You can also set the overflowY or overflowX to 'auto' or 'hidden' if you want to hide the extra content. In such cases you don't need the more general overflow property.

Let me know if you still have problems.

-G

moralbarometer
Offline
Joined: 2009-05-24
Points: 0

hi,
My appreciation for the excellent reply. This helped out by taking me one step forward. The option of enclosing it with div with set height is known to me. The Dcontainer settings is knew and is what i was looking for. A new problem arised by using this second option. All drawers on the page used this setting. I want it be dynamic or every drawer can decide and set its own startheight.With the sart height the content div is shown used only when there is a click on the label contrary to the enclosing div height that is shown even if there is no click on the label, good but not need in my design. I presume there is a way to set this startheight for every used drawer.

Once more thanks for the information and any one further will be helpful with respect to the above mentioned arised problem

Ivo