From d5b20d463f43fc3dcd1daa242a8f008b05fc23ca Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Wed, 17 Dec 2014 10:10:14 -0500 Subject: [PATCH] NIFI-27: - Addressing resizable issue after updating jquery UI. --- .../nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js index c75728ba72..55a436a2da 100644 --- a/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js +++ b/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js @@ -395,7 +395,12 @@ nf.StatusHistory = (function () { } // the container for the main chart - var chartContainer = $('#status-history-chart-container').resizable('destroy').empty(); + var chartContainer = $('#status-history-chart-container').empty(); + if (chartContainer.hasClass('ui-resizable')) { + chartContainer.resizable('destroy'); + } + + // calculate the dimensions var width = chartContainer.width() - margin.left - margin.right; var height = chartContainer.height() - margin.top - margin.bottom;