From: Matthias Schmidt Date: Wed, 6 Apr 2016 16:51:00 +0000 (+0200) Subject: Fix table column resizing during row dragging X-Git-Tag: 3.0.0_Beta_1~1959 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f64c8912068f344f1e161743a0c3033b49df46f4;p=GitHub%2FWoltLab%2FWCF.git Fix table column resizing during row dragging --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index aa58bf8c1e..d4ee88c007 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -6783,6 +6783,16 @@ WCF.Sortable.List = Class.extend({ var sortableList = $('#' + this._containerID + ' .sortableList'); if (sortableList.is('tbody') && this._options.helper === 'clone') { this._options.helper = this._tableRowHelper.bind(this); + + // explicitly set column widths to avoid column resizing during dragging + var thead = sortableList.prev('thead'); + if (thead) { + thead.find('th').each(function(index, element) { + element = $(element); + + element.width(element.width()); + }); + } } if (isSimpleSorting) {