diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index 2e5492ae..ca35b646 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -190,7 +190,8 @@ namespace Volian.Controls.Library case 1: // Section ItemLocation = new Point(_MyParentStepItem.ItemLocation.X + 20, _MyParentStepItem.Bottom); int borderWidth = _MyStepRTB.Width - _MyStepRTB.ClientRectangle.Width; - TextWidth = _WidthAdjust + borderWidth + _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.WidSTableEdit, Convert.ToInt32(_MyStepSectionLayoutData.PMode) - 1); + //TextWidth = _WidthAdjust + borderWidth + _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.WidSTableEdit, Convert.ToInt32(_MyStepSectionLayoutData.PMode) - 1); + TextWidth = _WidthAdjust + borderWidth + _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.WidSTableEdit, MyItemInfo.ColumnMode); break; case 2: // Step // if Table then determine width and location based upon it's parent's location @@ -216,7 +217,8 @@ namespace Volian.Controls.Library _IgnoreResize = false; if (RNOLevel <= _MyItemInfo.ColumnMode) { - int colR = _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.ColRTable, Convert.ToInt32(_MyStepSectionLayoutData.PMode) - 1); + //int colR = _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.ColRTable, Convert.ToInt32(_MyStepSectionLayoutData.PMode) - 1); + int colR = _MyStepPanel.ToDisplay(_MyStepSectionLayoutData.ColRTable, MyItemInfo.ColumnMode); if (colR - _MyParentStepItem.Width < 0) colR = _MyParentStepItem.Width + 0; _MyStepPanel.ItemMoving++; //Left = _MyParentStepItem.ItemLeft + RNOLevel * colR;