diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index 2bed74d0..f3f8cbe4 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -167,7 +167,11 @@ namespace Volian.Controls.Library Invalidate(); if (MyItemInfo.MyTab.Offset == 0) { - if (MyItemInfo.FormatStepData == null || MyItemInfo.FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") || !MyItemInfo.IsHigh) + // In the following if statement, the last part, 'IsHigh & PageBreakOnStep' (PageBreakOnStep + // flags background steps and IsHigh is for the HLS - Cautions/Notes were ok), was added + // for hls in background documents - without this, the tab gets overwritten by the rtb. + if (MyItemInfo.FormatStepData == null || MyItemInfo.FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") || !MyItemInfo.IsHigh || + (MyItemInfo.IsHigh && MyItemInfo.FormatStepData.PageBreakOnStep)) _MyStepRTB.Left = lblTab.Left + lblTab.Width; _MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin; }