Add text and markup nodes at correct sibling index

This commit is contained in:
Eilon Lipton 2019-08-14 14:59:25 -07:00
Родитель 4e415d4b0d
Коммит c503365479
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -106,7 +106,7 @@ namespace BlinForms.Framework
{
throw new NotImplementedException("Nonempty markup: " + frame.MarkupContent);
}
Children.Add(new BlontrolAdapter(Renderer) { Name = $"Dummy markup, sib#={siblingIndex}" });
AddChildAdapter(siblingIndex, new BlontrolAdapter(Renderer) { Name = $"Dummy markup, sib#={siblingIndex}" });
return 1;
}
case RenderTreeFrameType.Text:
@ -116,7 +116,7 @@ namespace BlinForms.Framework
{
throw new NotImplementedException("Nonempty text: " + frame.TextContent);
}
Children.Add(new BlontrolAdapter(Renderer) { Name = $"Dummy text, sib#={siblingIndex}" });
AddChildAdapter(siblingIndex, new BlontrolAdapter(Renderer) { Name = $"Dummy text, sib#={siblingIndex}" });
return 1;
}
default: