*/
return {
observe: function() {
- var container, toggleButtons;
+ var container, toggleButtons, overflowContainer;
while (_containers.length) {
container = _containers[0];
toggleButtons.push(button);
}
});
+ overflowContainer = elBySel('.collapsibleBbcodeOverflow', container) || container;
if (toggleButtons.length > 0) {
(function (container, toggleButtons) {
});
// expand boxes that are initially scrolled
- if (container.scrollTop !== 0) {
+ if (overflowContainer.scrollTop !== 0) {
toggle();
}
- container.addEventListener('scroll', function () {
+ overflowContainer.addEventListener('scroll', function () {
if (container.classList.contains('collapsed')) {
toggle();
}