Index: lams_central/web/includes/javascript/pedagogicalPlanner.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/pedagogicalPlanner.js,v diff -u -r1.28 -r1.29 --- lams_central/web/includes/javascript/pedagogicalPlanner.js 21 Aug 2011 07:02:53 -0000 1.28 +++ lams_central/web/includes/javascript/pedagogicalPlanner.js 22 Sep 2011 14:25:07 -0000 1.29 @@ -324,7 +324,7 @@ function expandActivity(id){ var activity = $('#activity'+id); var currentHeight = activity.height(); - var targetHeight = activity[0].contentDocument.height + 150; + var targetHeight = activity.contents().find("html").height() + 10; var expanded = 'true'; if (initialActivityHeight == null){ initialActivityHeight = currentHeight;