Dynamical adjusts the height of the translation component

This commit is contained in:
tsommer committed 2022-09-20 19:42:04 +02:00
1 parent d521aca2f7
commit 1d72212f87
1 file changed
+2 -1
@@ -44,8 +44,9 @@ public sealed partial class Translation : UserControl
this.isLoading = true; this.isLoading = true;
this.currentTranslationId = translation.Id; this.currentTranslationId = translation.Id;
this.textBox.Multiline = translation.TextElement.IsMultiLine;
this.textBox.Text = translation.Text; this.textBox.Text = translation.Text;
this.textBox.Multiline = translation.TextElement.IsMultiLine;
this.Height = translation.TextElement.IsMultiLine ? 280 : 106;
this.isLoading = false; this.isLoading = false;
} }