Fix item tree column resizing issues

Report https://forums.zotero.org/discussion/97077/problem-with-column-width-adjustment
This commit is contained in:
Adomas Venčkauskas 2022-05-10 17:02:15 +03:00
parent a406e62fd3
commit eb6b14a218

View file

@ -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`);
}
}