Fixed flexible menu displaying more items than it should
authorAlexander Ebert <ebert@woltlab.com>
Fri, 28 Nov 2014 00:03:44 +0000 (01:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 28 Nov 2014 00:03:44 +0000 (01:03 +0100)
wcfsetup/install/files/js/WCF.js

index 19c91e621a877747d85717e37082fa8cac1992c3..314b719e0b5720b75b885c9e108cb7d38bb688f7 100755 (executable)
@@ -6722,9 +6722,7 @@ WCF.System.FlexibleMenu = {
                        return;
                }
                
-               var $changedItems = false;
                var $container = this._containers[containerID];
-               var $currentWidth = 0;
                
                // hide all items
                var $menuItems = this._menuItems[containerID].hide();
@@ -6784,6 +6782,8 @@ WCF.System.FlexibleMenu = {
                                }
                                
                                this._hasHiddenItems[containerID] = true;
+                               
+                               break;
                        }
                }