added parent height:auto on tree expand to avoid child overlapping

pull/2174/head
REJack 5 years ago
parent b9efcc0f98
commit 97348104dd
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888

@ -84,6 +84,7 @@
parent.addClass(ClassName.open); parent.addClass(ClassName.open);
tree.slideDown(this.options.animationSpeed, function () { tree.slideDown(this.options.animationSpeed, function () {
$(this.element).trigger(expandedEvent); $(this.element).trigger(expandedEvent);
parent.height('auto');
}.bind(this)); }.bind(this));
}; };

@ -900,6 +900,8 @@ throw new Error('AdminLTE requires jQuery')
parent.addClass(ClassName.open); parent.addClass(ClassName.open);
tree.slideDown(this.options.animationSpeed, function () { tree.slideDown(this.options.animationSpeed, function () {
$(this.element).trigger(expandedEvent); $(this.element).trigger(expandedEvent);
parent.css('background', 'red').height('auto');
console.log("parent.height('auto');");
}.bind(this)); }.bind(this));
}; };

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save