Dynamical adjusts the height of the translation component
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user