mirror of https://github.com/apache/nifi.git
[NIFI-1904] If open, close hamburger menu on window resize. This closes #1106
This commit is contained in:
parent
3b408f5601
commit
c764f83506
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue