From 44fcd07f6b50cc33ad8dd2918dd1bca38317792c Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 15 Sep 2021 16:29:17 -0600 Subject: [PATCH] Hopefully fix some out-of-order children when the first child of a box is a legacy widget --- api/js/etemplate/et2_core_DOMWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_core_DOMWidget.ts b/api/js/etemplate/et2_core_DOMWidget.ts index 83acbbe592..1cd20b192f 100644 --- a/api/js/etemplate/et2_core_DOMWidget.ts +++ b/api/js/etemplate/et2_core_DOMWidget.ts @@ -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); }