View previous topic :: View next topic |
Author |
Message |
z00rg
Joined: 03 Jan 2006 Posts: 12
|
Posted: Fri May 19, 2006 12:39 pm Post subject: Issues with setting AutoFitHeight = true |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri May 19, 2006 11:46 pm Post subject: |
|
|
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 |
|
|
|