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;
|
MyItemInfo = itemInfo;
|
||||||
}
|
}
|
||||||
//// TIMING: DisplayItem.TimeIt("CSLARTB MyItem");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB MyItem");
|
||||||
|
myStepPanel.Controls.Add(this);
|
||||||
switch (myChildRelation)
|
switch (myChildRelation)
|
||||||
{
|
{
|
||||||
case ChildRelation.After:
|
case ChildRelation.After:
|
||||||
@ -656,7 +657,7 @@ namespace Volian.Controls.Library
|
|||||||
Expand(false);
|
Expand(false);
|
||||||
}
|
}
|
||||||
//// TIMING: DisplayItem.TimeIt("CSLARTB before Controls Add");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB before Controls Add");
|
||||||
myStepPanel.Controls.Add(this);
|
//myStepPanel.Controls.Add(this);
|
||||||
_Loading = false;
|
_Loading = false;
|
||||||
//// TIMING: DisplayItem.TimeIt("CSLARTB Controls Add");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB Controls Add");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user