We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc7787 commit 167ccd0Copy full SHA for 167ccd0
modules/base/ObjectPainter.mjs
@@ -212,8 +212,10 @@ class ObjectPainter extends BasePainter {
212
* Such string typically used as object tooltip.
213
* If result string larger than 20 symbols, it will be cutted. */
214
getObjectHint() {
215
- const hint = this.getItemName() || this.getObjectName() || this.getClassName() || '';
216
- return (hint.length <= 20) ? hint : hint.slice(0, 17) + '...';
+ const iname = this.getItemName();
+ if (iname)
217
+ return (iname.length > 20) ? '...' + iname.slice(iname.length - 17) : iname;
218
+ return this.getObjectName() || this.getClassName() || '';
219
}
220
221
/** @summary returns color from current list of colors
0 commit comments