NIFI-565:

- Ensuring tooltips are properly disposed. Without proper cleanup the bulletins were not being initialized correctly, when new bulletins would arise.
- Increasing the max width of tooltips.
This commit is contained in:
Matt Gilman 2015-06-23 14:09:45 -04:00
parent e767f5ce02
commit a896510d7f
3 changed files with 4 additions and 3 deletions

View File

@ -115,6 +115,7 @@ div.nifi-tooltip {
border: 1px solid #454545;
background-color: #FFFFA3;
color: #454545;
max-width: 500px;
}
.ellipsis {

View File

@ -811,7 +811,7 @@ nf.Canvas = (function () {
// bulletins for this processor are now gone
if (bulletins.length === 0) {
if (bulletinIcon.data('qtip')) {
bulletinIcon.removeClass('has-bulletins').qtip('destroy');
bulletinIcon.removeClass('has-bulletins').qtip('api').destroy(true);
}
// hide the icon

View File

@ -264,7 +264,7 @@ nf.ControllerService = (function () {
}, nf.CanvasUtils.config.systemTooltipConfig));
}
} else if (icon.data('qtip')) {
icon.qtip('destroy');
icon.qtip('api').destroy(true);
}
return state;
});
@ -294,7 +294,7 @@ nf.ControllerService = (function () {
}, nf.CanvasUtils.config.systemTooltipConfig));
}
} else if (icon.data('qtip')) {
icon.qtip('destroy');
icon.qtip('api').destroy(true);
}
return state;
});