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:
parent
752a080876
commit
ebca8c0217
@ -4228,15 +4228,15 @@ RED.view = (function() {
|
|||||||
var maxY = 0;
|
var maxY = 0;
|
||||||
d.nodes.forEach(function(n) {
|
d.nodes.forEach(function(n) {
|
||||||
if (n.type !== "group") {
|
if (n.type !== "group") {
|
||||||
minX = Math.min(minX,n.x-n.w/2-25-((n._def.button && n._def.align!=="right")?20:0));
|
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-25);
|
minY = Math.min(minY,n.y-n.h/2-35);
|
||||||
maxX = Math.max(maxX,n.x+n.w/2+25+((n._def.button && n._def.align=="right")?20:0));
|
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+25);
|
maxY = Math.max(maxY,n.y+n.h/2+35);
|
||||||
} else {
|
} else {
|
||||||
minX = Math.min(minX,n.x-25)
|
minX = Math.min(minX,n.x-35)
|
||||||
minY = Math.min(minY,n.y-25)
|
minY = Math.min(minY,n.y-35)
|
||||||
maxX = Math.max(maxX,n.x+n.w+25)
|
maxX = Math.max(maxX,n.x+n.w+35)
|
||||||
maxY = Math.max(maxY,n.y+n.h+25)
|
maxY = Math.max(maxY,n.y+n.h+35)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user