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