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() {
_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) {