Index: lams_central/web/includes/javascript/progressBar.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/progressBar.js,v diff -u -r1.13.2.10 -r1.13.2.11 --- lams_central/web/includes/javascript/progressBar.js 8 Aug 2016 11:42:16 -0000 1.13.2.10 +++ lams_central/web/includes/javascript/progressBar.js 9 Aug 2016 00:16:19 -0000 1.13.2.11 @@ -594,6 +594,13 @@ }); }, + // hide all Optional Activities instantly - used when the control bar shrinks + hideComplexContentInstantly : function() { + $('div.optionalActivity').each(function(index, contentDiv) { + $(contentDiv).hide(); + }); + }, + // draw box with inner activities showComplexContent : function(activity) { if (activity.isComplex) { @@ -611,9 +618,9 @@ activity.optionalContent = $('
').attr('id', containerName).addClass('optionalActivity').css({ // a little higher than activity, to cover it - 'top' : $(activity.shape.node).offset().top - 8, + 'top' : $(activity.shape.node).offset().top - $('#progressBarDiv').offset().top + 30, 'left' : $(activity.shape.node).offset().left - 65, - 'height' : 27 * activity.childActivities.length - 1 + 'height' : 29 * activity.childActivities.length - 1 }).appendTo('#' + activity.bar.containerId); var optionalContentTable = $('