From aee483e9f13b4ef0ab9ac67f503dad1ef0598e49 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 26 Aug 2016 16:22:06 +0100 Subject: [PATCH] Stop nodes being added beyond the outer bounds of the workspace --- editor/js/ui/view.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index 3da1f503c..7d41d335c 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -641,6 +641,8 @@ RED.view = (function() { mousePos = mouse_position; var minX = 0; var minY = 0; + var maxX = space_width; + var maxY = space_height; for (var n = 0; n 0) { var gridOffset = [0,0]; node = moving_set[0];