1
0
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:
Nick O'Leary 2020-06-08 13:17:06 +01:00
parent 0a614f2741
commit f2b30d9a3f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,7 @@ RED.sidebar.help = (function() {
hideTOC();
showHelp(type);
}
resizeStack();
}
// TODO: DRY - projects.js

View File

@ -118,6 +118,8 @@ RED.sidebar.info = (function() {
enableOnEdit: true
});
RED.events.on("sidebar:resize", resizeStack);
$(window).on("resize", resizeStack);
$(window).on("focus", resizeStack);