diff --git a/chrome/content/zotero/containers/tagSelector.jsx b/chrome/content/zotero/containers/tagSelector.jsx index 8604429a44..ea4806d988 100644 --- a/chrome/content/zotero/containers/tagSelector.jsx +++ b/chrome/content/zotero/containers/tagSelector.jsx @@ -361,8 +361,11 @@ Zotero.TagSelector = class TagSelectorContainer extends React.PureComponent { let widths = hasColor ? this.widthsBold : this.widths; let width = widths.get(name); if (width === undefined) { - //Zotero.debug(`Calculating ${hasColor ? 'bold ' : ''}width for tag '${name}'`); width = this.getTextWidth(name, hasColor ? fontBold : font); + // TEMP + if (Zotero.Debug.enabled) { + Zotero.debug(`Calculated ${hasColor ? 'bold ' : ''}width of ${width} for tag '${name}'`); + } widths.set(name, width); } return width;