From f64c8912068f344f1e161743a0c3033b49df46f4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 6 Apr 2016 18:51:00 +0200 Subject: [PATCH] Fix table column resizing during row dragging --- wcfsetup/install/files/js/WCF.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) { -- 2.20.1