Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js =================================================================== diff -u -r6a65d13d5f6d98713395e42f43a466f1c0aab012 -rf53c0f26fff0677ef4aaadadb0d215ec91b670b6 --- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision 6a65d13d5f6d98713395e42f43a466f1c0aab012) +++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision f53c0f26fff0677ef4aaadadb0d215ec91b670b6) @@ -1283,7 +1283,10 @@ forceRowY = null, paperWidth = paper.attr('width'), // check how many columns current paper can hold - maxColumns = Math.floor((paperWidth - layout.conf.arrangeHorizontalPadding) / layout.conf.arrangeHorizontalSpace), + // paperMinWidth is used for SVG auto regenerate + maxColumns = Math.floor(((paperWidth < 300 && paperMinWidth ? paperMinWidth : paperWidth) + - layout.conf.arrangeHorizontalPadding) + / layout.conf.arrangeHorizontalSpace), // the initial max length of subsequences is limited by paper space subsequenceMaxLength = maxColumns, // a shallow copy of activities array without inner activities