Removed obsolete chrome workaround
authorMarcel Werk <burntime@woltlab.com>
Wed, 7 Oct 2015 16:50:16 +0000 (18:50 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 7 Oct 2015 16:50:16 +0000 (18:50 +0200)
wcfsetup/install/files/js/WCF.js

index 9e866b7f8416a7f4cb9a8b99da3fa0684e6fa784..3ea81487ab9fc4f178e02e17357e244a65f416f4 100755 (executable)
@@ -12265,12 +12265,6 @@ WCF.Category.FlexibleCategoryList = Class.extend({
                        this._list.addClass('flexibleCategoryListDisabled');
                        return;
                }
-               
-               if ($.browser.chrome) {
-                       this._resize();
-                       
-                       $(window).resize(this._resize.bind(this));
-               }
        },
        
        _buildStructure: function() {
@@ -12302,25 +12296,6 @@ WCF.Category.FlexibleCategoryList = Class.extend({
                });
        },
        
-       _resize: function() {
-               var $referenceOffset = -1;
-               var $realBottom = 0;
-               var $items = this._list.children('li');
-               
-               $items.each(function(index, item) {
-                       if ($referenceOffset === -1 || index + 1 === $items.length || $items[index + 1].offsetLeft != $referenceOffset) {
-                               var $item = $(item);
-                               var $height = $item.outerHeight(true);
-                               var $offset = $item.position();
-                               
-                               $realBottom = Math.max($realBottom, $offset.top + $height);
-                               $referenceOffset = item.offsetLeft;
-                       }
-               });
-               
-               this._list.css('max-height', $realBottom + 'px');
-       },
-       
        _updateSelection: function(event) {
                var $category = $(event.currentTarget);
                var $categoryID = parseInt($category.val());