Add debugging for tag selector truncation issue
https://forums.zotero.org/discussion/76665/tag-issue-display-of-some-tags-erratic
This commit is contained in:
parent
ba12592164
commit
ecdcb65f57
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue