From eb6b14a218fb0248618d2a2b3563ac03358567de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 10 May 2022 17:02:15 +0300 Subject: [PATCH] Fix item tree column resizing issues Report https://forums.zotero.org/discussion/97077/problem-with-column-width-adjustment --- chrome/content/zotero/components/virtualized-table.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 6a8d603d7d..9fc84a8ce5 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -1486,7 +1486,8 @@ var Columns = class { this._stylesheet.sheet.cssRules[styleIndex].style.setProperty('max-width', `${width}px`, 'important'); this._stylesheet.sheet.cssRules[styleIndex].style.setProperty('min-width', `${width}px`, 'important'); } else { - width = (width - COLUMN_PADDING) * COLUMN_NORMALIZATION_WIDTH / headerWidth; + width = (width - COLUMN_PADDING); + Zotero.debug(`Columns ${dataKey} width ${width}`); this._stylesheet.sheet.cssRules[styleIndex].style.setProperty('flex-basis', `${width}px`); } }