From e87d92015e37c40ae300517eec392fc8793459d6 Mon Sep 17 00:00:00 2001 From: Norbert Nemeth Date: Tue, 12 Oct 2021 19:49:30 +0200 Subject: [PATCH] AUI-3206 append container as we expand tree item --- src/aui-tree/js/aui-tree-node.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/aui-tree/js/aui-tree-node.js b/src/aui-tree/js/aui-tree-node.js index e04aa704fe..67dfd375b5 100644 --- a/src/aui-tree/js/aui-tree-node.js +++ b/src/aui-tree/js/aui-tree-node.js @@ -716,6 +716,13 @@ var TreeNode = A.Component.create({ expand: function() { var instance = this; + var boundingBox = instance.get('boundingBox'); + var nodeContainer = instance.get('container'); + + if (nodeContainer && !boundingBox.contains(nodeContainer)) { + boundingBox.append(nodeContainer); + } + instance.set('expanded', true); },