Previous fix for positioning of high level step text in the edit window caused the width of the sub-steps to get smaller and smaller. Adjust the MyStepRTB.Left only if not on a highlevel step or the tab contains “{Section Prefix}”.

This commit is contained in:
John Jenko 2015-01-12 18:06:18 +00:00
parent ace837aa1d
commit f3cba1acde

View File

@ -167,7 +167,7 @@ namespace Volian.Controls.Library
Invalidate(); Invalidate();
if (MyItemInfo.MyTab.Offset == 0) if (MyItemInfo.MyTab.Offset == 0)
{ {
if (MyItemInfo.FormatStepData == null || MyItemInfo.FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}")) if (MyItemInfo.FormatStepData == null || MyItemInfo.FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") || !MyItemInfo.IsHigh)
_MyStepRTB.Left = lblTab.Left + lblTab.Width; _MyStepRTB.Left = lblTab.Left + lblTab.Width;
_MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin; _MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin;
} }