adjust edit control height on any line count change.
This commit is contained in:
parent
c29114a237
commit
7f1e7eda0f
2 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue