Welcome Guest Search | Active Topics | Sign In | Register

Grid resize setHeight solution? Options
ixthnar
Posted: Tuesday, August 18, 2009 12:36:30 PM
Rank: Advanced Member
Groups: Member

Joined: 11/15/2008
Posts: 44
Hello,

My goal is to change (increase) the height of a Grid on a client resize event. My solution uses undocumented EO properties so I am concerned and would like a better approach. Can anyone help?

I found that Grid.setHeight() changes the height of the of the outer container (as documented) but the height of the inner container remains the same. btw In reading the forums it appears that Grid.setWidth() sets both the outer and inner containers. By setting the undocumented property "aod" I can resize a Grid. The following illustrates:

Quote:

function MyResize() {
iHeightTop = document.getElementById('WrapperTop').offsetHeight;
// GetHeight() gets the height of the container
iHeightNew = Math.max(40, GetHeight() - iHeightTop - 10);
Grid_IDSEventData.setHeight(iHeightNew);
Grid_IDSEventData.aod = iHeightNew;
}


Thanks,
Chris
eo_support
Posted: Tuesday, August 18, 2009 1:43:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Try to use Grid.setSize. That should work correctly for you.

Thanks!
ixthnar
Posted: Tuesday, August 18, 2009 3:55:53 PM
Rank: Advanced Member
Groups: Member

Joined: 11/15/2008
Posts: 44
Thanks!! That did the trick.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.