Fix issue where note content area height is set to 0
This commit is contained in:
parent
7f464a439b
commit
93ce0d8ce0
1 changed files with 9 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Reference in a new issue