summaryrefslogtreecommitdiff
path: root/plugins/kolab_notes/skins/larry/templates/dialogview.html
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-07-31 09:25:36 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-07-31 09:25:36 (GMT)
commit93ce0d8ce07cb9af2167d52f6fd998b53dd051be (patch)
tree94e2e1d5cd00b1f339f6a739908c856bec6a676a /plugins/kolab_notes/skins/larry/templates/dialogview.html
parent7f464a439b46d07af99fac0d4bf049b094b407c9 (diff)
downloadroundcubemail-plugins-kolab-93ce0d8ce07cb9af2167d52f6fd998b53dd051be.tar.gz
Fix issue where note content area height is set to 0
Diffstat (limited to 'plugins/kolab_notes/skins/larry/templates/dialogview.html')
-rw-r--r--plugins/kolab_notes/skins/larry/templates/dialogview.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/kolab_notes/skins/larry/templates/dialogview.html b/plugins/kolab_notes/skins/larry/templates/dialogview.html
index 722eb1b..bc1f7f9 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){