1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Increase group margin to avoid clash with status text

This commit is contained in:
Nick O'Leary 2020-06-14 23:44:26 +01:00
parent 752a080876
commit ebca8c0217
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -4228,15 +4228,15 @@ RED.view = (function() {
var maxY = 0;
d.nodes.forEach(function(n) {
if (n.type !== "group") {
minX = Math.min(minX,n.x-n.w/2-25-((n._def.button && n._def.align!=="right")?20:0));
minY = Math.min(minY,n.y-n.h/2-25);
maxX = Math.max(maxX,n.x+n.w/2+25+((n._def.button && n._def.align=="right")?20:0));
maxY = Math.max(maxY,n.y+n.h/2+25);
minX = Math.min(minX,n.x-n.w/2-35-((n._def.button && n._def.align!=="right")?20:0));
minY = Math.min(minY,n.y-n.h/2-35);
maxX = Math.max(maxX,n.x+n.w/2+35+((n._def.button && n._def.align=="right")?20:0));
maxY = Math.max(maxY,n.y+n.h/2+35);
} else {
minX = Math.min(minX,n.x-25)
minY = Math.min(minY,n.y-25)
maxX = Math.max(maxX,n.x+n.w+25)
maxY = Math.max(maxY,n.y+n.h+25)
minX = Math.min(minX,n.x-35)
minY = Math.min(minY,n.y-35)
maxX = Math.max(maxX,n.x+n.w+35)
maxY = Math.max(maxY,n.y+n.h+35)
}
});