mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure editor resize is called even when limits are hit
This commit is contained in:
parent
b14546605d
commit
acdef87be7
@ -70,13 +70,13 @@ RED.tray = (function() {
|
||||
el.width('auto');
|
||||
},
|
||||
drag: function(event,ui) {
|
||||
|
||||
var absolutePosition = editorStack.position().left+ui.position.left
|
||||
if (absolutePosition < 7) {
|
||||
ui.position.left += 7-absolutePosition;
|
||||
} else if (ui.position.left > -tray.preferredWidth-1) {
|
||||
ui.position.left = -Math.min(editorStack.position().left-7,tray.preferredWidth-1);
|
||||
} else if (tray.options.resize) {
|
||||
}
|
||||
if (tray.options.resize) {
|
||||
setTimeout(function() {
|
||||
tray.options.resize({width: -ui.position.left});
|
||||
},0);
|
||||
|
Loading…
Reference in New Issue
Block a user