Preparation to switch to ITextSharp library

Corrected logic to process window size/movement adjustments
This commit is contained in:
Rich
2009-02-06 15:52:27 +00:00
parent 1503b3f9cc
commit 1731dbe43b
3 changed files with 68 additions and 56 deletions

View File

@@ -1161,6 +1161,15 @@ namespace Volian.Controls.Library
ExpandChildren(_MyRNOStepItems);
ExpandChildren(_MyAfterStepItems);
}
private string MyPath
{
get
{
if(MyItemInfo.MyContent.Type >= 20000)
return MyItemInfo.Path.Substring(MyItemInfo.ActiveSection.Path.Length);
return "";
}
}
/// <summary>
/// Adjust the Location of all items below the current item.
/// </summary>
@@ -1261,8 +1270,7 @@ namespace Volian.Controls.Library
get
{
StepItem tmp = this;
// If this item appears before it's parent, and it doesn't have anything below it, return the parent
if (tmp.MyNextStepItem == null && FirstSiblingStepItem._MyChildRelation == ChildRelation.Before)
if (tmp.MyNextStepItem == null && FirstSiblingStepItem._MyChildRelation == ChildRelation.Before && tmp._MyAfterStepItems == null)
return UpOneStepItem;
if (Expanded && tmp._MyAfterStepItems != null)// check to see if there is a _After
return tmp._MyAfterStepItems[0].TopMostStepItem;// if there is go that way
@@ -1273,6 +1281,8 @@ namespace Volian.Controls.Library
return null;
if (tmp.MyExpandingStatus == ExpandingStatus.Expanding || tmp.Moving) // Parent Expanding or Moving - Wait
return null;
if (tmp.MyNextStepItem == null && tmp.FirstSiblingStepItem._MyChildRelation == ChildRelation.Before)
return tmp.UpOneStepItem;
StepItem btm = tmp.BottomMostStepItem;
if (this != btm)
{