Index: lams_central/web/includes/javascript/authoring/authoringMenu.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/authoring/authoringMenu.js,v diff -u -r1.34.2.28 -r1.34.2.29 --- lams_central/web/includes/javascript/authoring/authoringMenu.js 2 Jan 2017 08:58:11 -0000 1.34.2.28 +++ lams_central/web/includes/javascript/authoring/authoringMenu.js 3 Mar 2017 08:19:16 -0000 1.34.2.29 @@ -319,8 +319,14 @@ x2 : 0, y2 : 0 }; - $.each(layout.activities.concat(layout.regions).concat(layout.labels), function() { + + var boxes = layout.activities.concat(layout.regions).concat(layout.labels); + if (layout.floatingActivity) { + boxes.push(layout.floatingActivity); + } + $.each(boxes, function() { var box = this.items.getBBox(); + debugger; if (box.x < result.x) { result.x = box.x; } @@ -635,4 +641,4 @@ $('.templateContainer').height($('#ldDescriptionDiv').height() + $('#canvas').height() - 10); }); } -}; +}; \ No newline at end of file