Fixed issue where the TextBox of a SpeechBubble or normale TextContainer isn't visible, this was due to a negative height/width.

This commit is contained in:
RKrom 2014-06-11 18:12:57 +02:00
parent efb4807cd1
commit efd144ad0d

View file

@ -267,10 +267,11 @@ namespace Greenshot.Drawing {
} }
private void UpdateTextBoxPosition() { private void UpdateTextBoxPosition() {
_textBox.Left = Left; Rectangle absRectangle = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
_textBox.Top = Top; _textBox.Left = absRectangle.Left;
_textBox.Width = Width; _textBox.Top = absRectangle.Top;
_textBox.Height = Height; _textBox.Width = absRectangle.Width;
_textBox.Height = absRectangle.Height;
} }
public override void ApplyBounds(RectangleF newBounds) { public override void ApplyBounds(RectangleF newBounds) {