Hopefully fix some out-of-order children when the first child of a box is a legacy widget

This commit is contained in:
nathan 2021-09-15 16:29:17 -06:00
parent d68b8fdfe4
commit 44fcd07f6b

View File

@ -238,7 +238,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
// Append this node at its index
var idx = this.getDOMIndex();
if (idx < 0 || idx >= this.parentNode.childNodes.length - 1)
if(idx < 0 || idx > this.parentNode.childNodes.length - 1)
{
this.parentNode.appendChild(node);
}