Force display buttons when a new button appears
authorAlexander Ebert <ebert@woltlab.com>
Wed, 5 Aug 2020 22:29:37 +0000 (00:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 5 Aug 2020 22:29:37 +0000 (00:29 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js

index 04b0edc50be404cdccc4859c312344497ab16998..d85fa3c275e722eb6bbee5f62ffba3a59c79c313 100644 (file)
@@ -142,6 +142,7 @@ define(['Dictionary', 'Language'], function (Dictionary, Language) {
                        }
                        
                        _container.insertBefore(wrapper, insertBefore);
+                       _wrapper.classList.remove('scrolledDown');
                        
                        _buttons.set(buttonName, button);
                        this._renderContainer();
@@ -222,6 +223,7 @@ define(['Dictionary', 'Language'], function (Dictionary, Language) {
                                }
                                
                                elAttr(button.parentNode, 'aria-hidden', 'false');
+                               _wrapper.classList.remove('scrolledDown');
                                this._renderContainer();
                        }
                },