Use ItemInfo.ColumnMode to set columns
This commit is contained in:
parent
df1defc709
commit
141f230e83
@ -190,7 +190,8 @@ namespace Volian.Controls.Library
|
|||||||
case 1: // Section
|
case 1: // Section
|
||||||
ItemLocation = new Point(_MyParentStepItem.ItemLocation.X + 20, _MyParentStepItem.Bottom);
|
ItemLocation = new Point(_MyParentStepItem.ItemLocation.X + 20, _MyParentStepItem.Bottom);
|
||||||
int borderWidth = _MyStepRTB.Width - _MyStepRTB.ClientRectangle.Width;
|
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;
|
break;
|
||||||
case 2: // Step
|
case 2: // Step
|
||||||
// if Table then determine width and location based upon it's parent's location
|
// if Table then determine width and location based upon it's parent's location
|
||||||
@ -216,7 +217,8 @@ namespace Volian.Controls.Library
|
|||||||
_IgnoreResize = false;
|
_IgnoreResize = false;
|
||||||
if (RNOLevel <= _MyItemInfo.ColumnMode)
|
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;
|
if (colR - _MyParentStepItem.Width < 0) colR = _MyParentStepItem.Width + 0;
|
||||||
_MyStepPanel.ItemMoving++;
|
_MyStepPanel.ItemMoving++;
|
||||||
//Left = _MyParentStepItem.ItemLeft + RNOLevel * colR;
|
//Left = _MyParentStepItem.ItemLeft + RNOLevel * colR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user