mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
efb4807cd1
commit
efd144ad0d
1 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue