From 9910cff2c55fac6a8d1ee88af79d9bf8bdb596be Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 25 Mar 2015 12:02:35 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20for=20partially=20hidden=20=20=E2=80=98EO?= =?UTF-8?q?P=20Step=20#:=E2=80=98=20tab=20in=20edit=20window=20for=20backg?= =?UTF-8?q?round=20steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/RTBItem.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }