Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js =================================================================== diff -u -r61f846c3ffdf0635dc2b54832a98c6f694feb3da -r06a4c89bf38facb59f2586650246f08cfdd4d0fe --- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision 61f846c3ffdf0635dc2b54832a98c6f694feb3da) +++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision 06a4c89bf38facb59f2586650246f08cfdd4d0fe) @@ -937,14 +937,6 @@ layout.dialogs.push(layout.ldStoreDialog); - $('#ldStoreDialogImportPartFrame').load(function() { - var frame = $(this); - if (!frame.attr('src')){ - return; - } - frame.height(+frame.contents().find('svg').attr('height') + 40); - }); - // there should be no focus, just highlight YAHOO.widget.TreeView.FOCUS_CLASS_NAME = null; var tree = new YAHOO.widget.TreeView('ldStoreDialogTree'); @@ -2275,8 +2267,12 @@ } else { GeneralLib.resizePaper(); } + + var resizeImportPartFrame = window.parent.GeneralLib.resizeImportPartFrame; + if (resizeImportPartFrame) { + resizeImportPartFrame(+paper.attr('height')); + } - if (systemGate) { // if system gate exists, it is Live Edit layout.liveEdit = true; @@ -2732,6 +2728,11 @@ }, + resizeImportPartFrame : function(svgHeight) { + $('#ldStoreDialogImportPartFrame').height(svgHeight + 40); + }, + + /** * Sets new paper dimensions and moves some static elements. */