From 0c23b73383c6293197b463eb648a73ac3399747c Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 14 Nov 2012 15:37:31 +0000 Subject: [PATCH] Fixed logic to use the maximum height of Caution or Note when determining the height for a Deviation Document step. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 880dbf0e..69419901 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -952,8 +952,8 @@ namespace Volian.Print.Library yoff = ChildrenAbove.Add(cb, itemInfo.Cautions, xoff, yoff, yoff, rnoLevel, maxRNO, formatInfo); } if (itemInfo.Notes != null && !(itemInfo.IsCaution || itemInfo.IsNote)) - if(itemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format) - yoffLeft = ChildrenLeft.Add(cb, itemInfo.Notes, xoff + 6 + (float)(itemInfo.ActiveFormat.MyStepSectionLayoutData.WidT), yoff, yoff, rnoLevel, maxRNO, formatInfo); + if (itemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format) + yoffLeft = Math.Max(yoffLeft, ChildrenLeft.Add(cb, itemInfo.Notes, xoff + 6 + (float)(itemInfo.ActiveFormat.MyStepSectionLayoutData.WidT), yoff, yoff, rnoLevel, maxRNO, formatInfo)); else yoff = ChildrenAbove.Add(cb, itemInfo.Notes, xoff, yoff, yoff, rnoLevel, maxRNO, formatInfo); // If the format has that extra space should be put out before the step, then