Merge pull request #2826 from larsbrubaker/design_tools
adjust edit control height on any line count change.
This commit is contained in:
commit
d18e28e9d8
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit dbe5a9eb4460cc7950927a51304ef2678e1b872b
|
||||
Subproject commit 77cd4776f9bb1742be68101806b6aa04f0484727
|
||||
Loading…
Add table
Add a link
Reference in a new issue