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

This commit is contained in:
Scott Aslan 2016-10-05 11:46:48 -04:00 committed by Matt Gilman
parent 3b408f5601
commit c764f83506
1 changed files with 5 additions and 0 deletions

View File

@ -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();