Got the default mark down text to wrap

issue: MatterHackers/MCCentral#3722
Make text wrapping work in mark down
This commit is contained in:
Lars Brubaker 2018-06-22 14:10:51 -07:00
parent 9f00ccad38
commit a7111987f4
4 changed files with 30 additions and 13 deletions

View file

@ -55,18 +55,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
bool shouldCollapseToParent = item.Source is ModifiedMeshObject3D || item.Source is OperationSourceObject3D;
var contextNode = (shouldCollapseToParent && parent != null) ? parent : AddItem(item, parent, theme);
contextNode.SuspendLayout();
if (!(item.Source is IVisualLeafNode))
using (contextNode.LayoutLock())
{
foreach (var child in item.Children)
if (!(item.Source is IVisualLeafNode))
{
AddTree(BuildItemView(child), contextNode, theme);
foreach (var child in item.Children)
{
AddTree(BuildItemView(child), contextNode, theme);
}
}
}
contextNode.ResumeLayout();
return contextNode;
}