You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2014/12/17 16:12:05 UTC

incubator-nifi git commit: NIFI-27: - Addressing resizable issue after updating jquery UI.

Repository: incubator-nifi
Updated Branches:
  refs/heads/nifi-27 d7b1113a8 -> d5b20d463


NIFI-27:
- Addressing resizable issue after updating jquery UI.

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/d5b20d46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/d5b20d46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/d5b20d46

Branch: refs/heads/nifi-27
Commit: d5b20d463f43fc3dcd1daa242a8f008b05fc23ca
Parents: d7b1113
Author: Matt Gilman <ma...@gmail.com>
Authored: Wed Dec 17 10:10:14 2014 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Wed Dec 17 10:10:14 2014 -0500

----------------------------------------------------------------------
 .../nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/d5b20d46/nar-bundles/framework-bundle/framework/web/nifi-web-ui/src/main/webapp/js/nf/nf-status-history.js
----------------------------------------------------------------------
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 c75728b..55a436a 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;