forked from extern/egroupware
Fix (remove) vertical scrollbar on popups with CKEDITOR
This commit is contained in:
parent
05ce70f1a8
commit
098fcbf918
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user