From f189d72943c490ae97323997aef8987bc58f3b5e Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 10 Sep 2015 15:27:58 -0400
Subject: [PATCH] Merged branch 'dev-mailvelope'

---
 skins/larry/ui.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 0171a19..092f108 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -467,6 +467,14 @@
       $('div.rightcol').hide().attr('aria-hidden', 'true');
       $('div.leftcol').css('margin-right', '0');
     }
+
+    var mvlpe = $('#messagebody.mailvelope');
+    if (mvlpe.length) {
+      var h = $('#messagecontent').length ?
+        $('#messagecontent').height() - 16 :
+        $(window).height() - mvlpe.offset().top - 10;
+      mvlpe.height(h);
+    }
   }
 
 

--
Gitblit v1.9.1