From efd144ad0d33c7c82f8fdb474c65d3533a3808be Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 11 Jun 2014 18:12:57 +0200 Subject: [PATCH] Fixed issue where the TextBox of a SpeechBubble or normale TextContainer isn't visible, this was due to a negative height/width. --- Greenshot/Drawing/TextContainer.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Greenshot/Drawing/TextContainer.cs b/Greenshot/Drawing/TextContainer.cs index 53d732e11..9c8800784 100644 --- a/Greenshot/Drawing/TextContainer.cs +++ b/Greenshot/Drawing/TextContainer.cs @@ -267,10 +267,11 @@ namespace Greenshot.Drawing { } private void UpdateTextBoxPosition() { - _textBox.Left = Left; - _textBox.Top = Top; - _textBox.Width = Width; - _textBox.Height = Height; + Rectangle absRectangle = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height); + _textBox.Left = absRectangle.Left; + _textBox.Top = absRectangle.Top; + _textBox.Width = absRectangle.Width; + _textBox.Height = absRectangle.Height; } public override void ApplyBounds(RectangleF newBounds) {