Dynamical adjusts the height of the translation component

This commit is contained in:
Thorsten Sommer 2022-09-20 19:42:04 +02:00
parent d521aca2f7
commit 1d72212f87
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -44,9 +44,10 @@ public sealed partial class Translation : UserControl
this.isLoading = true;
this.currentTranslationId = translation.Id;
this.textBox.Multiline = translation.TextElement.IsMultiLine;
this.textBox.Text = translation.Text;
this.textBox.Multiline = translation.TextElement.IsMultiLine;
this.Height = translation.TextElement.IsMultiLine ? 280 : 106;
this.isLoading = false;
}