mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
Fix (remove) vertical scrollbar on popups with CKEDITOR
This commit is contained in:
parent
6f587f6f39
commit
77beec33d2
@ -302,7 +302,17 @@
|
|||||||
{
|
{
|
||||||
// Resize popup when et2 load is done
|
// Resize popup when et2 load is done
|
||||||
jQuery(node).on('load', function() {
|
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");
|
var et2 = new etemplate2(node, "EGroupware\\Api\\Etemplate::ajax_process_content");
|
||||||
|
Loading…
Reference in New Issue
Block a user