Repository: nifi
Updated Branches:
  refs/heads/master 3b408f560 -> c764f8350


[NIFI-1904] If open, close hamburger menu on window resize. This closes #1106


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

Branch: refs/heads/master
Commit: c764f83506165c99e77c707e358cb327e9af16b8
Parents: 3b408f5
Author: Scott Aslan <scottyas...@gmail.com>
Authored: Wed Oct 5 11:46:48 2016 -0400
Committer: Matt Gilman <matt.c.gil...@gmail.com>
Committed: Wed Oct 5 14:23:13 2016 -0400

----------------------------------------------------------------------
 .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/c764f835/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js
index 7ae1353..66c1c6f 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js
@@ -479,6 +479,11 @@ nf.Canvas = (function () {
         // listen for browser resize events to reset the graph size
         $(window).on('resize', function (e) {
             if (e.target === window) {
+                // close the hamburger menu if open
+                if($('.md-menu-backdrop').is(':visible') === true){
+                    $('.md-menu-backdrop').click();
+                }
+
                 updateGraphSize();
                 updateFlowStatusContainerSize();
 

Reply via email to