From ecdcb65f5764617d273fe715b30b41803438d799 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 30 Mar 2019 12:23:20 -0400 Subject: [PATCH] Add debugging for tag selector truncation issue https://forums.zotero.org/discussion/76665/tag-issue-display-of-some-tags-erratic --- chrome/content/zotero/containers/tagSelector.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;