From 6bb4a3df66841b385781e482d194af880a8d1c75 Mon Sep 17 00:00:00 2001 From: afromogli Date: Tue, 28 Jul 2015 14:40:32 +0200 Subject: [PATCH] Added extra check for state-object. This solved issue with initializing jQuery Layout with option[maskIframesOnResize = true], resizing the pane, replacing the HTML-content in pane and then resizing it again. In that case "s" was undefined which lead to resize-crashes. This is only a work-around until the root problem is resolved, I think that it would be great with a "RefreshDOM()" method that refreshes tha pane-state that you would call after replacing the pane-content. --- source/stable/jquery.layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/stable/jquery.layout.js b/source/stable/jquery.layout.js index 759be09..e090ffe 100644 --- a/source/stable/jquery.layout.js +++ b/source/stable/jquery.layout.js @@ -2804,7 +2804,7 @@ $.fn.layout = function (opts) { , s = state[pane] ; // only masks over an IFRAME-pane need manual resizing - if (s.tagName == "IFRAME" && s.isVisible) // no need to mask closed/hidden panes + if (s && s.tagName == "IFRAME" && s.isVisible) // no need to mask closed/hidden panes $M.css({ top: s.offsetTop , left: s.offsetLeft