diff --git a/Greenshot/Drawing/DrawableContainer.cs b/Greenshot/Drawing/DrawableContainer.cs index 5e247edb3..8bb41cce8 100644 --- a/Greenshot/Drawing/DrawableContainer.cs +++ b/Greenshot/Drawing/DrawableContainer.cs @@ -164,16 +164,16 @@ namespace Greenshot.Drawing { set { Left = round(value.Left); Top = round(value.Top); - Width = round(value.Width); - Height = round(value.Height); + Width = round(value.Width); + Height = round(value.Height); } } - public void ApplyBounds(RectangleF newBounds) { + public virtual void ApplyBounds(RectangleF newBounds) { Left = round(newBounds.Left); Top = round(newBounds.Top); - Width = round(newBounds.Width); - Height = round(newBounds.Height); + Width = round(newBounds.Width); + Height = round(newBounds.Height); } public DrawableContainer(Surface parent) { diff --git a/Greenshot/Drawing/TextContainer.cs b/Greenshot/Drawing/TextContainer.cs index 8f9ebee21..c788c4e5f 100644 --- a/Greenshot/Drawing/TextContainer.cs +++ b/Greenshot/Drawing/TextContainer.cs @@ -238,6 +238,11 @@ namespace Greenshot.Drawing { textBox.Height = this.Height; } + public override void ApplyBounds(RectangleF newBounds) { + base.ApplyBounds(newBounds); + UpdateTextBoxPosition(); + } + private void UpdateTextBoxFormat() { UpdateFont(); Color lineColor = GetFieldValueAsColor(FieldType.LINE_COLOR);