mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Resize info/help sidebars whenever sidebar is opened
This commit is contained in:
parent
0a614f2741
commit
f2b30d9a3f
@ -267,6 +267,7 @@ RED.sidebar.help = (function() {
|
|||||||
hideTOC();
|
hideTOC();
|
||||||
showHelp(type);
|
showHelp(type);
|
||||||
}
|
}
|
||||||
|
resizeStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: DRY - projects.js
|
// TODO: DRY - projects.js
|
||||||
|
@ -118,6 +118,8 @@ RED.sidebar.info = (function() {
|
|||||||
enableOnEdit: true
|
enableOnEdit: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
RED.events.on("sidebar:resize", resizeStack);
|
||||||
|
|
||||||
$(window).on("resize", resizeStack);
|
$(window).on("resize", resizeStack);
|
||||||
$(window).on("focus", resizeStack);
|
$(window).on("focus", resizeStack);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user