Moved fix for B2016-211 to RTBItem.cs
This commit is contained in:
		@@ -2175,10 +2175,6 @@ namespace Volian.Controls.Library
 | 
			
		||||
			if (Top != offset)
 | 
			
		||||
				_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>
 | 
			
		||||
		/// Automatically expands Steps if not currently expanded
 | 
			
		||||
		/// </summary>
 | 
			
		||||
@@ -2186,8 +2182,7 @@ namespace Volian.Controls.Library
 | 
			
		||||
		{
 | 
			
		||||
			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 && !AtSubSectionLevel()) // Bug Fix: B2016-211 was expanding all the steps in all of the sub-sections
 | 
			
		||||
				if(MyStepPanel.AutoExpand)
 | 
			
		||||
					Expand((_ContentType >= 20000) || MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format);
 | 
			
		||||
				else
 | 
			
		||||
					Expand(false);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user