Fix (remove) vertical scrollbar on popups with CKEDITOR

This commit is contained in:
nathangray 2019-01-23 16:01:50 -07:00
parent 05ce70f1a8
commit 098fcbf918

View File

@ -302,7 +302,17 @@
{
// Resize popup when et2 load is done
jQuery(node).on('load', function() {
window.setTimeout(resize_popup, 50);
if(typeof CKEDITOR !== 'undefined' && Object.keys(CKEDITOR.instances).length)
{
CKEDITOR.once('instanceReady',function() {
// Trigger a resize again once CKEDITOR is ready
window.resizeTo(egw_getWindowOuterWidth(), egw_getWindowOuterHeight() );
});
}
else
{
window.setTimeout(resize_popup, 50);
}
});
}
var et2 = new etemplate2(node, "EGroupware\\Api\\Etemplate::ajax_process_content");