Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Issues with setting AutoFitHeight = true

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
z00rg



Joined: 03 Jan 2006
Posts: 12

PostPosted: Fri May 19, 2006 12:39 pm    Post subject: Issues with setting AutoFitHeight = true Reply with quote

Whenever i set AutoFitHeight to true.....

GetOptimalRowHeight is called twice for each row

When it is called for the first time, they are no CellWidgets in the "this.ChildWidgets" collection, hence Tree.MinRowHeight is returned

In the second time it works ok......The problem how ever is the Row Header Widget draws it self using the value returned from first call to GetOptimalRowHeight and you get Tree.MinRowHeight

And you get a tree, with disoriented RowHeader and Rows.....pls find attached pic and refer to snippet of code below.

public virtual int GetOptimalRowHeight(Graphics graphics)
{
int height = Tree.MinRowHeight;
foreach (Widget widget in this.ChildWidgets)
{
if (widget is CellWidget)
{
//Some Code
}
}


[/img]
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri May 19, 2006 11:46 pm    Post subject: Reply with quote

What version of Virtual Tree and which .NET framework are you using?

I've checked this issue in the latest version by setting AutoFitHeight to true for the Customer Row binding in the Data Set Browser sample project. This does not exhibit the issue.

If possible could you email a sample project that illustrates the issue to support@infralution.com.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

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


Powered by phpBB © 2001, 2005 phpBB Group