Moved fix for B2016-211 to RTBItem.cs
This commit is contained in:
parent
60ba9f1676
commit
ae856a98ec
@ -2175,10 +2175,6 @@ namespace Volian.Controls.Library
|
|||||||
if (Top != offset)
|
if (Top != offset)
|
||||||
_MyLog.InfoFormat("Didn't work - Top {0} != offset {1} {2}", Top, offset,MyStepPanel.VerticalScroll.Value);
|
_MyLog.InfoFormat("Didn't work - Top {0} != offset {1} {2}", Top, offset,MyStepPanel.VerticalScroll.Value);
|
||||||
}
|
}
|
||||||
private bool AtSubSectionLevel()
|
|
||||||
{
|
|
||||||
return MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection;
|
|
||||||
}
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Automatically expands Steps if not currently expanded
|
/// Automatically expands Steps if not currently expanded
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -2186,8 +2182,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
if (CanExpand && Expanded == false)// TODO: May need to do some additional checking for subsections
|
if (CanExpand && Expanded == false)// TODO: May need to do some additional checking for subsections
|
||||||
{
|
{
|
||||||
//vlnStackTrace.ShowStack(">AutoExpand ID {0} - Can {1} Expanded {2}", _MyItem.ItemID, CanExpand, Expanded);
|
if(MyStepPanel.AutoExpand)
|
||||||
if(MyStepPanel.AutoExpand && !AtSubSectionLevel()) // Bug Fix: B2016-211 was expanding all the steps in all of the sub-sections
|
|
||||||
Expand((_ContentType >= 20000) || MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format);
|
Expand((_ContentType >= 20000) || MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format);
|
||||||
else
|
else
|
||||||
Expand(false);
|
Expand(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user