adjust edit control height on any line count change.

This commit is contained in:
LarsBrubaker 2017-12-31 09:34:40 -08:00
parent c29114a237
commit 7f1e7eda0f
2 changed files with 9 additions and 1 deletions

View file

@ -57,6 +57,14 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
};
editWidget.ActualTextEditWidget.TextChanged += (s, e) =>
{
UiThread.RunOnIdle(() =>
{
editWidget.ActualTextEditWidget.Height = Math.Min(editWidget.ActualTextEditWidget.Printer.LocalBounds.Height, 500);
});
};
this.Content = editWidget;
}