Merge pull request #2826 from larsbrubaker/design_tools

adjust edit control height on any line count change.
This commit is contained in:
Lars Brubaker 2017-12-31 09:41:05 -08:00 committed by GitHub
commit d18e28e9d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}

@ -1 +1 @@
Subproject commit dbe5a9eb4460cc7950927a51304ef2678e1b872b
Subproject commit 77cd4776f9bb1742be68101806b6aa04f0484727