Skip to content
Snippets Groups Projects
Commit 17a23c60 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[IMP] [MONKEY] Re-apply changes introduced at version 3328.

Original commit by chm.

[FIX] cleditor: When the DOM is modify, the event resize try to call refresh and refresh has not DOM available. Correction : If the DOM as no prent, don't call refresh.

bzr revid: tde@openerp.com-20140305105455-1ewix4pm9m5ob1bm
parent bff34f40
No related branches found
No related tags found
No related merge requests found
......@@ -306,8 +306,12 @@
// Bind the window resize event when the width or height is auto or %
if (/auto|%/.test("" + options.width + options.height))
$(window).bind('resize.cleditor', function () { refresh(editor); });
$(window).bind('resize.cleditor', function () {
// CHM Note MonkeyPatch: if the DOM is not remove, refresh the cleditor
if(editor.$main.parent().parent().size()) {
refresh(editor);
}
});
// Create the iframe and resize the controls
refresh(editor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment