Controls.Add was changing calculated width for RTB
Move the command prior to the width being determined.
This commit is contained in:
parent
292f991420
commit
e122b64f75
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user