From 2c498554eef07f0f7daaae1aefab210c930d0592 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 26 Feb 2016 20:49:26 +0000 Subject: [PATCH] Adjust the height of the Annotation Text window to scroll when moved past the bottom line. --- PROMS/Volian.Controls.Library/AnnotationDetails.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PROMS/Volian.Controls.Library/AnnotationDetails.cs b/PROMS/Volian.Controls.Library/AnnotationDetails.cs index b4c795b7..8bc51159 100644 --- a/PROMS/Volian.Controls.Library/AnnotationDetails.cs +++ b/PROMS/Volian.Controls.Library/AnnotationDetails.cs @@ -100,6 +100,13 @@ namespace Volian.Controls.Library //#if(DEBUG) //Resize+=new EventHandler(AnnotationDetails_Resize); // Debug the resize event //#endif + Resize += AnnotationDetails_Resize; + } + + void AnnotationDetails_Resize(object sender, EventArgs e) + { + if(Height > 0) + rtxbComment.Height = Height - rtxbComment.Top; } #endregion