Index: lams_central/web/includes/javascript/dialog.js =================================================================== diff -u -rcb4d21bab9428253cb4b4fe98ddfb092676aeb40 -r2d93f89a71df0d0d377702f08e33faac1753515d --- lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision cb4d21bab9428253cb4b4fe98ddfb092676aeb40) +++ lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision 2d93f89a71df0d0d377702f08e33faac1753515d) @@ -274,7 +274,7 @@ //used by both main.jsp and /lti/addlesson.jsp pages function showAuthoringDialog(learningDesignID){ - showDialog('dialogAuthoring', { + var dialog = showDialog('dialogAuthoring', { 'height' : Math.max(300, $(window).height() - 30), 'width' : Math.max(600, Math.min(1280, $(window).width() - 60)), 'title' : LABELS.AUTHORING_TITLE, @@ -301,4 +301,9 @@ $('iframe', this).attr('src', url); } }, true); + + // resize the paper when dialog is resized + $('.modal-content', dialog).on('resizestop', function() { + $('iframe', this)[0].contentWindow.GeneralLib.resizePaper(); + }); } \ No newline at end of file