Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js =================================================================== diff -u -rbd4fa408454e7389b4e60bc68f2488de88eff663 -rc9c3f3b59bf02f6e96a727e1f92a11f7a65d2bbd --- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision bd4fa408454e7389b4e60bc68f2488de88eff663) +++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision c9c3f3b59bf02f6e96a727e1f92a11f7a65d2bbd) @@ -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'); @@ -2276,8 +2268,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; @@ -2734,6 +2730,11 @@ }, + resizeImportPartFrame : function(svgHeight) { + $('#ldStoreDialogImportPartFrame').height(svgHeight + 40); + }, + + /** * Sets new paper dimensions and moves some static elements. */