Fix issue where note content area height is set to 0

This commit is contained in:
Aleksander Machniak 2014-07-31 05:25:36 -04:00
parent 7f464a439b
commit 93ce0d8ce0

View file

@ -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){