From 51aa003c091b4868510514df4df26ed9536fa2cb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 7 Oct 2015 18:50:16 +0200 Subject: [PATCH] Removed obsolete chrome workaround --- wcfsetup/install/files/js/WCF.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 9e866b7f84..3ea81487ab 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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()); -- 2.20.1