Merge pull request #2006 from Fabii547/patch-13
authorMarcel Werk <burntime@woltlab.com>
Fri, 1 Jul 2016 14:16:05 +0000 (16:16 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Jul 2016 14:16:05 +0000 (16:16 +0200)
Fix tab menu

1  2 
wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu/Simple.js

index c5902a46407ed7fdbf11513c568d5f11c936d2ac,b07e64ca032801d482905d1cf559a115c87d0302..7da8f7745f0eda91d6233e0821384473ac1e6bcf
@@@ -237,11 -229,27 +238,10 @@@ define(['Dictionary', 'EventHandler', '
                        if (this._isLegacy) {
                                tab.classList.add('ui-state-active');
                                newContent.classList.add('ui-state-active');
-                               newContent.classList.remove('hidden');
                        }
                        
 -                      var menu = tab.parentNode.parentNode;
 -                      
 -                      // set pointer position
 -                      var span = DomTraverse.childByTag(menu, 'SPAN');
 -                      
 -                      // make sure that the tab is (temporarily) visible so that offsetLeft has the proper value
 -                      var toggleHidden = false;
 -                      if (menu.classList.contains('menu') && menu.parentNode.classList.contains('hidden')) {
 -                              toggleHidden = true;
 -                              menu.parentNode.classList.remove('hidden');
 -                      }
 -                      
 -                      if (span !== null) {
 -                              span.style.setProperty('transform', 'translateX(' + tab.offsetLeft + 'px)', '');
 -                              span.style.setProperty('width', tab.clientWidth + 'px', '');
 -                      }
 -                      
 -                      if (toggleHidden) {
 -                              menu.parentNode.classList.add('hidden');
 +                      if (this._store) {
 +                              this._store.value = name;
                        }
                        
                        if (!disableEvent) {