diff --git a/public/javascripts/spacedeck_board_artifacts.js b/public/javascripts/spacedeck_board_artifacts.js index 4ed0277..50a9050 100644 --- a/public/javascripts/spacedeck_board_artifacts.js +++ b/public/javascripts/spacedeck_board_artifacts.js @@ -587,7 +587,7 @@ var SpacedeckBoardArtifacts = { var selected = this.selected_artifacts(); if (selected.length<2) return; - var sorted = _.sortBy(selected, function(a) { return a.x+a.y*this.active_space.advanced.width }.bind(this)); + var sorted = _.sortBy(selected, function(a) { return a.x+a.y*this.active_space.width }.bind(this)); var minx = sorted[0].x; var miny = sorted[0].y; @@ -596,11 +596,13 @@ var SpacedeckBoardArtifacts = { var blocks = []; + var padding = 10; + for (var i=0; i