Got the default mark down text to wrap
issue: MatterHackers/MCCentral#3722 Make text wrapping work in mark down
This commit is contained in:
parent
9f00ccad38
commit
a7111987f4
4 changed files with 30 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue