Skip to content

Commit e87d920

Browse files
author
Norbert Nemeth
committed
AUI-3206 append container as we expand tree item
1 parent 88ecdd9 commit e87d920

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/aui-tree/js/aui-tree-node.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,13 @@ var TreeNode = A.Component.create({
716716
expand: function() {
717717
var instance = this;
718718

719+
var boundingBox = instance.get('boundingBox');
720+
var nodeContainer = instance.get('container');
721+
722+
if (nodeContainer && !boundingBox.contains(nodeContainer)) {
723+
boundingBox.append(nodeContainer);
724+
}
725+
719726
instance.set('expanded', true);
720727
},
721728

0 commit comments

Comments
 (0)