mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Restore tray size properly when maximised
This commit is contained in:
parent
0efccc4758
commit
1861c1feb6
@ -91,6 +91,9 @@ RED.tray = (function() {
|
|||||||
|
|
||||||
tray.preferredWidth = el.width();
|
tray.preferredWidth = el.width();
|
||||||
if (options.width) {
|
if (options.width) {
|
||||||
|
if (options.width > $("#editor-stack").position().left-8) {
|
||||||
|
options.width = $("#editor-stack").position().left-8;
|
||||||
|
}
|
||||||
el.width(options.width);
|
el.width(options.width);
|
||||||
}
|
}
|
||||||
tray.width = el.width();
|
tray.width = el.width();
|
||||||
@ -107,7 +110,9 @@ RED.tray = (function() {
|
|||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
el.width(tray.preferredWidth);
|
if (!options.width) {
|
||||||
|
el.width(tray.preferredWidth);
|
||||||
|
}
|
||||||
if (options.resize) {
|
if (options.resize) {
|
||||||
options.resize({width:el.width()});
|
options.resize({width:el.width()});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user