From 1d72212f87b0ac1c9c0cb33417a5c2e544747a70 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 20 Sep 2022 19:42:04 +0200 Subject: [PATCH] Dynamical adjusts the height of the translation component --- I18N Commander/UI WinForms/Components/Translation.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/I18N Commander/UI WinForms/Components/Translation.cs b/I18N Commander/UI WinForms/Components/Translation.cs index 809f95b..806634b 100644 --- a/I18N Commander/UI WinForms/Components/Translation.cs +++ b/I18N Commander/UI WinForms/Components/Translation.cs @@ -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; }