Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #176 from NemethNorbert/AUI-3206
Browse files Browse the repository at this point in the history
AUI-3206 append container as we expand tree item
  • Loading branch information
markocikos authored Oct 19, 2021
2 parents 88ecdd9 + e87d920 commit fe89ace
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aui-tree/js/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

Expand Down

0 comments on commit fe89ace

Please sign in to comment.