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

Commit

Permalink
AUI-3206 append container as we expand tree item
Browse files Browse the repository at this point in the history
  • Loading branch information
NemethNorbert committed Oct 18, 2021
1 parent 88ecdd9 commit e87d920
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 e87d920

Please sign in to comment.