Controls.Add was changing calculated width for RTB

Move the command prior to the width being determined.
This commit is contained in:
Rich 2008-04-16 16:20:26 +00:00
parent 292f991420
commit e122b64f75

View File

@ -600,6 +600,7 @@ namespace Volian.Controls.Library
MyItemInfo = itemInfo;
}
//// TIMING: DisplayItem.TimeIt("CSLARTB MyItem");
myStepPanel.Controls.Add(this);
switch (myChildRelation)
{
case ChildRelation.After:
@ -656,7 +657,7 @@ namespace Volian.Controls.Library
Expand(false);
}
//// TIMING: DisplayItem.TimeIt("CSLARTB before Controls Add");
myStepPanel.Controls.Add(this);
//myStepPanel.Controls.Add(this);
_Loading = false;
//// TIMING: DisplayItem.TimeIt("CSLARTB Controls Add");
}