Index: lams_central/web/includes/javascript/authoring/authoringMenu.js =================================================================== diff -u -r6c7122de5737ab054120c52ffc2fd174a55ed972 -rc062961bef26efc595914f2a1c863bfba27122a8 --- lams_central/web/includes/javascript/authoring/authoringMenu.js (.../authoringMenu.js) (revision 6c7122de5737ab054120c52ffc2fd174a55ed972) +++ lams_central/web/includes/javascript/authoring/authoringMenu.js (.../authoringMenu.js) (revision c062961bef26efc595914f2a1c863bfba27122a8) @@ -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