plugins/kolab_notes

Aleksander Machniak machniak at kolabsys.com
Thu Jul 31 11:26:09 CEST 2014


 plugins/kolab_notes/skins/larry/templates/dialogview.html |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 93ce0d8ce07cb9af2167d52f6fd998b53dd051be
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Thu Jul 31 05:25:36 2014 -0400

    Fix issue where note content area height is set to 0

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




More information about the commits mailing list