Index: lams_central/web/includes/javascript/authoring/authoringActivity.js =================================================================== diff -u -r44e39b699fc9f179bfc46fb47ec4008ab67a4c51 -r9cdb52bc59fb1adb7c4c402831caf27236e1e2ea --- lams_central/web/includes/javascript/authoring/authoringActivity.js (.../authoringActivity.js) (revision 44e39b699fc9f179bfc46fb47ec4008ab67a4c51) +++ lams_central/web/includes/javascript/authoring/authoringActivity.js (.../authoringActivity.js) (revision 9cdb52bc59fb1adb7c4c402831caf27236e1e2ea) @@ -490,17 +490,13 @@ .addClass('svg-tool-activity-border' + (this.requireGrouping ? '-require-grouping' : '')), // check for icon in the library icon = ActivityLib.getActivityIcon('grouping'), - label = paper.text(x + 55, y + 25, ActivityLib.shortenActivityTitle(this.title)) - .attr(layout.defaultTextAttributes) - .attr({ - 'fill' : layout.colors.activityText, - 'text-anchor' : 'start' - }); + label = ActivityLib.wrapActivityTitle(this.title, x, y); + icon.select('svg').attr({ 'x' : x + 20, - 'y' : y + 3, - 'width' : '30px', - 'height': '30px' + 'y' : y + 15, + 'width' : '50px', + 'height': '50px' }); this.items = paper.g(shape, shapeBorder, label, icon); @@ -1808,17 +1804,6 @@ }, /** - * Reduce length of activity's title so it fits in its SVG shape. - */ - shortenActivityTitle : function(title) { - if (title.length > 23) { - title = title.substring(0, 22) + '...'; - } - return title; - }, - - - /** * Crawles through branches setting their lengths and finding the longest one. */ updateBranchesLength : function(branchingActivity) {