diff --git a/plugins/kolab_notes/skins/larry/templates/dialogview.html b/plugins/kolab_notes/skins/larry/templates/dialogview.html index 722eb1bc..bc1f7f95 100644 --- a/plugins/kolab_notes/skins/larry/templates/dialogview.html +++ b/plugins/kolab_notes/skins/larry/templates/dialogview.html @@ -43,7 +43,15 @@ $(document).ready(function(e){ content.width(w).height(h); $('#noteform > div.mce-tinymce').width(w); - $('#notecontent_ifr').width(w).height(h - 4 - $('div.mce-toolbar').height()); + + h = h - 4 - $('div.mce-toolbar').height(); + + $('#notecontent_ifr').width(w).height(h); + + // fixes issue when toolbar is not ready yet and content + // area height is set to 0, wait and try again later... + if (h < 0) + setTimeout(function() { layout_view(); }, 1000); } $(window).resize(function(e){