mirror of
https://github.com/apache/nifi.git
synced 2025-02-08 11:05:17 +00:00
[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…
x
Reference in New Issue
Block a user