diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index c29a53df..6e638496 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -178,9 +178,11 @@ namespace Volian.Controls.Library // 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. + // B2017-184: in the following if statement, added the SpecialCaseCalvertAlarm flag & 20002 so that, in the default text size setting of the windows display + // the last 'W' of 'WINDOW' tab (for the Device window step type, 20002) would not get cut off. if (MyItemInfo.FormatStepData == null || MyItemInfo.FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") || !MyItemInfo.IsHigh || - (MyItemInfo.IsHigh && MyItemInfo.FormatStepData.PageBreakOnStep)) - _MyStepRTB.Left = lblTab.Left + lblTab.Width; + (MyItemInfo.IsHigh && MyItemInfo.FormatStepData.PageBreakOnStep) || (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm && MyItemInfo.MyContent.Type == 20002)) + _MyStepRTB.Left = lblTab.Left + lblTab.Width; _MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin - CheckOffMargin; } _TabFormat = value;